I currently try to replicate the Javascript shim of wasm_bindgen in Rust using wasmtime
for WASM execution, but as the return value of functions gets put into the Memory
, and the fact that I would like to avoid putting helper functions into my WASM files for decoding store values, I need some way or documentation which byte order/representation i32
values in Memory
have, and I wasn't able to find any documentation about that yet.
wasm values are always stored in little endian: https://webassembly.github.io/spec/core/exec/numerics.html#aux-bytes
Last updated: Nov 22 2024 at 17:03 UTC