Expand description
Helpers for workign with encoding/decoding bytes w.r.t. wasmtime’s custom-encoded sections.
Functions§
- pop
- Pops a single byte from the front of
data, returning it and consuming it fromdata. ReturnsNoneifdatais empty. - read_
sleb - Reads a sleb-encoded value from
data, returning the value and consuming the bytes read fromdata. ReturnsNoneif the encoding is invalid. - read_
uleb - Reads a uleb-encoded value from
data, returning the value and consuming the bytes read fromdata. ReturnsNoneif the encoding is invalid. - write_
sleb - Writes the sleb-encoded
valuetodata. - write_
uleb - Writes the uleb-encoded
valuetodata.