Skip to main content

Module wire

Module wire 

Source
Expand description

Canonical host/guest input wire format.

The input stream is encoded as u32 words where:

  • the first word stores payload byte length,
  • each following word stores up to 4 payload bytes in big-endian order,
  • the final word is zero-padded when payload length is not a multiple of 4.

Enums§

WireError
Errors that can occur while framing input payloads.

Functions§

frame_words_from_bytes
Frame payload bytes into input words consumed by the runtime.
read_framed_bytes_with
Read one framed payload from a word source.