wasm3 / wasm3-rs

Rust wrapper for Wasm3, the fastest WebAssembly interpreter
MIT License
155 stars 43 forks source link

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

Open lazytiger opened 4 months ago

lazytiger commented 4 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 3 weeks ago

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