It's mentioned in the docs here: https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html?highlight=memory_growth#access-memory-from-javascript
That if using the ALLOW_MEMORY_GROWTH option, the JS side needs to refresh the views on the memory buffer. If I used Module._malloc, and then memory grows, are the values returned from the original Module._malloc call still valid? If the values returned refer to specific positions in the underlying buffer, it seems like they would be invalidated, but that doesn't seem to be the case (they still seem valid). What's going on here? I have a feeling I'm misunderstanding how Emscripten works with C++ memory. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/432220a3-fcc4-46db-901e-145deb1fcdd5n%40googlegroups.com.
