Skip to main content

Module length

Module length 

Source
Expand description

Length-prefixed framing.

Each frame is preceded by a fixed-width unsigned integer that gives the length of the payload in bytes. The width and endianness are chosen at construction time.

Structs§

LengthPrefixed
Length-prefixed framer.

Enums§

Endian
Byte order for the length prefix.
LengthWidth
Width of the length prefix, in bytes.