Comment by Dwedit
Well I just thought of something obvious... Have a function that lets you pass in an ArrayBuffer, then it brings it into the virtual address space of the WASM program. Function would return the virtual address that was assigned to that array buffer. From there, you call into WASM again with that pointer, and the program can take action.
Then there would be another function to relinquish ownership of the ArrayBuffer.
There's no SharedArrayBuffer support? Or I misunderstand the idea