How to handle passing/returning array pointers to emscripten compiled code?

The expected format of Module.cwrap does allow for ‘array’s to be passed into the function, but will assert on result and fail if you attempt to return an array displayArrayA=Module.cwrap(‘displayArray’,’array’,[‘array’]) displayArrayA([1,2,3]) // Assertion failed: ccallFunc, fromC assert(type != ‘array’) A second restriction of this is that incoming arrays are expected to be byte arrays, meaning … Read more