In older versions it seems that you could use instance.Memory to modify the memory but this is no longer present. I can read memory with instance.Exports.GetMemory("mem") but this doesn't help with writing to it. (This is so I can pass a string to a wasm function so please tell me if there is a better way to do this).
Summary
In older versions it seems that you could use
instance.Memory
to modify the memory but this is no longer present. I can read memory withinstance.Exports.GetMemory("mem")
but this doesn't help with writing to it. (This is so I can pass a string to a wasm function so please tell me if there is a better way to do this).