Re:Rocket – A Rust game running on WASM
by wofo on Monday December 04, 2017 @07:59AM
(#15843460)
Since WASM in its current state is meant as a compilation target for C, it is usually possible to do things "the C way". For instance, you can allocate a buffer on the Javascript side and pass a pointer to the Rust side, which then can write to it. You can also allocate it on the Rust side and return it. This is for instance what you do when you want to return a string.
[ Parent
| on HN ]
There are no comments on this comment yet.