wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go

Home Page:https://pkg.go.dev/github.com/wasmerio/wasmer-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Writing memory

JanGordon opened this issue · comments

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