On Thu, Dec 15, 2022 at 5:09 PM Steve Dekorte <st...@dekorte.com> wrote:

> Is there JS emscripten API for storing and restoring a WASM system state
> (all non-code memory) to/from a buffer? Is there any sample code
> demonstrating this?


While saving and restoring the entire Wasm memory is relatively straight
forward (its just an ArrayBuffer operation), one possible problem you would
face is that emscripten stores a lot of its state in JS.  Any kind of
save/restore mechanism would likely also need to take that into account.
Perhaps you could explain why you are trying to do this and it might make
it clear if that would be a problem in your case?

cheers,
sam


-- 
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/029cdcef-982f-42d3-9ad5-fb5e8e9ebc81n%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/029cdcef-982f-42d3-9ad5-fb5e8e9ebc81n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va29kKByk555Fsgew1u8ZzMj9trC%2BeYn6h-5XDyT1sAWJtQ%40mail.gmail.com.

Reply via email to