Expand description
Methods to read basic WASM Values from a WasmDecoder object.
See: https://webassembly.github.io/spec/core/binary/values.html
Note: If any of these methods return Err, they may have consumed some bytes from the WasmDecoder object and thus consequent calls may result in unexpected behaviour.
This is due to the fact that these methods read elemental types which cannot be split.
Constants§
- CONTINUATION_
BIT 🔒 - Wasm encodes integers according to the LEB128 format, which specifies that only 7 bits of every byte are used to store the integer’s bits. The 8th bit is always used as a bitflag for whether the next byte shall also be read as part of the current integer. Therefore, it can be called a continuation bit, which is stored here as a global constant to improve code readability.
- INTEGER_
BIT_ 🔒FLAG