Expand description
Functions and types used by generated protobuf code
These are not considered to be public API of rust-protobuf, so they can be changed any time (provided compatibility with previously generated code is preserved).
Structs
Cached size field used in generated code.
Lazily initialized static variable.
Enums
All supported “wire types” are listed in this enum.
Traits
Fixed size integers.
Helper trait implemented by integer types which could be encoded as varint.
Helper trait implemented by integer types which could be encoded as zigzag varint.
Functions
Size of encoded bytes field.
Compute serialized size of map
field and cache nested field sizes.
Given u32
value compute varint encoded length.
Given u64
value compute varint encoded length.
Given usize
value compute varint encoded length.
Size of encoded enum field value.
Read map
field.
Read repeated enum field when the wire format is length-delimited.
Read singular message
field.
Handle unknown field in generated code. Either store a value in unknown, or skip a group. Return error if tag is incorrect.
Size of encoded string field.
Compute tag size. Size of tag does not depend on wire type.
Size of encoded unknown fields size.
Integer value size when encoded as specified wire type.
Length of value when encoding with zigzag encoding with tag
Size of serialized repeated packed enum field, excluding length and tag.
Size of serialized data with length prefix and tag
Compute field size (data plus header) of fixed encoding of repeated field.
Size of serialized repeated packed field, excluding length and tag.
Size of serialized data with length prefix and tag
Size of serialized repeated packed field, excluding length and tag.
Size of serialized data with length prefix and tag
Write map, message sizes must be already known.
Write message with field number and length to the stream.