I've been looking around Emscripten to try and figure out how to marshall large binary objects from C++.
We want to: 1. pass binaryArray = (unsigned *)&bigObject as a Uint8Array 2. Use XMLHttpRequest2 to send Uint8Array to server 3. Read in binary data on server (BigObject*) binaryArray in C++ The problem we're having is figuring out the most efficient way to get a Uint8Array of emscripten using embind. I've seen some threads that recommend emscripten::memory_view(output_size, output_ptr), but I don't know if it requires passing in a JS function via emscripten::val or if returning a memory view will get correctly marshalled. Does this seem like sane approach? Any easier ways in the most recent version of emscripten? -mtr -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
