wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.82k stars 161 forks source link

Writing memory #372

Open JanGordon opened 1 year ago

JanGordon commented 1 year ago

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 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).