Pass a JavaScript array as argument to a WebAssembly function
Your question is very similar to this one: WebAssembly only supports i32 / i64 / f32 / f64 value types as well as i8 / i16 for storage. This means that you can’t pass in pointers. What you’re doing is totally sane when you’re coming from a C++ point of view (no need to apologize … Read more