Module codec

Source

Structs§

ICodec
OCodec

Constants§

MAX_VARINT_LENGTH
The maximum number of bytes we expect in a varint. We use this to check if we’re encountering a decoding error for a varint.

Functions§

decode_length_delimited
Attempt to decode a message of type M from the given source buffer.
decode_varint
encode_length_delimited
Encode the given message with a length prefix.
encode_varint