You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to load the .wasm file directly. Then get the data by address and length, I didn't find any documentation or examples for that. I hope I can get your help. And I'm still confused about how rust returns strings without using wasi. Because I found that rust does not support multiple value return. So what should I do if I want to get both the address and the length of the string
The text was updated successfully, but these errors were encountered:
@joeywang321, sounds like you'd like to manipulate a Memory object (let me know if you meant something else). With a Memory object wasmtime provide functions to read and write bytes. If you're working with a string then you'd have to deal with conversion from/to bytes. wasmtime-ex currently only supports functions though, one day, other wasmtime objects will get supported.
You can also checkout wasmex in case you'd be OK with wasmer instead of wasmtime, that Elixir project has implemented Memory functionalities.
I want to load the .wasm file directly. Then get the data by address and length, I didn't find any documentation or examples for that. I hope I can get your help. And I'm still confused about how rust returns strings without using wasi. Because I found that rust does not support multiple value return. So what should I do if I want to get both the address and the length of the string
The text was updated successfully, but these errors were encountered: