Module protobuf

Source
Expand description

Tools to encode and decode protobuf messages.

Structs§

Encoder
An encoder for a single message of type T, using the messaging encoding E.
FieldIterator
An iterator over message fields.
FieldReader
A reader for a payload field.
FieldSizer
Type used to compute the size of field values.
FieldWriter
Type used to write field values.
MessageReader
Reader for an message.
MessageSizer
A type to compute the size of a message.
MessageWriter
A writer for a message.
PackedReader
Reader for packed fields.
PackedSizer
A type to help compute the size of a packed field.
PackedWriter
A writer for a packed field.
SequenceSizer
A sizer for computing the size of a sequence of fields.
SequenceWriter
A writer for writing a sequence of fields.

Enums§

WireType
The protobuf wire type.

Functions§

decode_with
Decodes a protobuf message into message using encoding T.