wasm3 / wasm3-rs

Rust wrapper for Wasm3, the fastest WebAssembly interpreter
MIT License
160 stars 44 forks source link

How to copy string to stack when sending to a function as argument? #49

Open lazytiger opened 5 months ago

lazytiger commented 5 months ago

I can pass string pass bidirectionally in the imported function because I can access the stack memory. But I don't know how to do it for exported function. I don't have access to the stack and can not implement ArgType for my type. Is there any way to do this?

spangaer commented 2 months ago

https://github.com/wasm3/wasm3/issues/340#issuecomment-2327446518