Hi, I'm having a hard time achieving something that sounds easy: - create an ArrayBufferView instance in JavaScript eg.: new Uint8Array([1,2,3] - pass this to a function in a wasm module that will operate on it and change some of the values (it will not create a new array) - be able to access the modified array in JavaScript
I'm trying to achieve this with as little glue-code as possible, my setup is here: https://github.com/andrewvarga/wasm_test When I run index.html, the console output is 29 which I believe comes from 23 + 6 (see buffertest.c), so I must be doing something very wrong. What I'm looking for is the simplest, smallest, fastest way to allow wasm module to change an array (like adding 6 to each element that I tried to do here). Any help would be very much appreciated! Thank you, Andrew -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.