Expand description
Functions used by generated protobuf code. Should not be used by programs written by hands.
Structs
- Lazily initialized data.
Traits
- 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. - Size of encoded enum field value.
- Read
map
field. - Read repeated
enum
field into given vec, and when value is unknown store it in unknown fields which matches proto2 spec. - Read repeated
enum
field into given vec, and when value is unknown store it in unknown fields which matches proto2 spec. - Read repeated
bool
field into given vec. - Read repeated
bytes
field into given vec. - Read repeated
double
field into given vec. - Read repeated
enum
field into given vec. This function is no longer called from generated code, remove in 1.5. - Read repeated
enum
field into given vec, and when value is unknown store it in unknown fields which matches proto2 spec. - Read repeated
fixed32
field into given vec. - Read repeated
fixed64
field into given vec. - Read repeated
float
field into given vec. - Read repeated
int32
field into given vec. - Read repeated
int64
field into given vec. - Read repeated
message
field. - Read repeated
sfixed32
field into given vec. - Read repeated
sfixed64
field into given vec. - Read repeated
sint32
field into given vec. - Read repeated
sint64
field into given vec. - Read repeated
string
field into given vec. - Read repeated
uint32
field into given vec. - Read repeated
uint64
field into given vec. - Read singular
bytes
field. - Read singular
message
field. - Read singular
bytes
field for proto3. - Read singular
string
field for proto3. - Read singular
string
field. - Handle unknown field in generated code. Either store a value in unknown, or skip a group.
- Size of encoded string field.
- Compute tag size. Size of tag does not depend on wire type.
- Create an error for unexpected 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
- Integer value size when encoded as specified wire type.
- Size of serialized repeated packed enum 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
- 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.