November 2019
Intermediate to advanced
448 pages
15h 6m
English
This chapter covers
In chapter 4, you created a WebAssembly module that your JavaScript code called into using Emscripten’s ccall helper function. You passed a buffer as a parameter to the module’s function so that, if there was an issue, an error message could be returned by placing it into the buffer. If there was an issue, your JavaScript read the string from the module’s memory and then displayed the message to the user, as figure 5.1 shows.
Imagine that rather than passing ...
Read now
Unlock full access