4 ms·
In WASM i32 can be treated like a 8-bit byte too.
by kbumsik 7y ago
In WASM i32 can be treated like a 8-bit byte too.
- kaoD 7y agoCan you elaborate? I'm not well-versed in WASM internals and I might be missing something. I mean, any integer with 8+ bits can be treated like an octet, but memory layout is very different (e.g. an array of i8 and an array of i32 look very different even if they represent the same values).
- kbumsik 7y agoAlthough WASM types only have 32/64 bits it has 8/16 bit operations too. So it won't matter much: https://webassembly.org/docs/semantics/ https://webassembly.org/docs/semantics/