Skip to main content

Module varint_prefixed

Module varint_prefixed 

Source
Expand description

Varint length-prefixed framing.

Each frame is a LEB128 varint giving the payload length, followed by the payload. This is the “length-delimited” stream format of Protocol Buffers (writeDelimitedTo / parseDelimitedFrom, prost::encode_length_delimited) and of several RPC transports. Small messages pay a single byte of overhead; the prefix grows by one byte per seven bits of length.

Structs§

VarintPrefixed
Varint length-prefixed framer.