Expand description
Functions used by generated protobuf code. Should not be used by programs written by hands.
Structs§
- LazyV2
- Lazily initialized data.
Traits§
- Protobuf
Varint - Helper trait implemented by integer types which could be encoded as varint.
- Protobuf
Varint Zigzag - Helper trait implemented by integer types which could be encoded as zigzag varint.
Functions§
- bytes_
size - Size of encoded bytes field.
- compute_
map_ size - Compute serialized size of
map
field and cache nested field sizes. - compute_
raw_ varint32_ size - Given
u32
value compute varint encoded length. - compute_
raw_ varint64_ size - Given
u64
value compute varint encoded length. - enum_
size - Size of encoded enum field value.
- read_
map_ into - Read
map
field. - read_
proto2_ enum_ with_ unknown_ fields_ into - Read repeated
enum
field into given vec, and when value is unknown store it in unknown fields which matches proto2 spec. - read_
proto3_ enum_ with_ unknown_ fields_ into - Read repeated
enum
field into given vec, and when value is unknown store it in unknown fields which matches proto2 spec. - read_
repeated_ bool_ into - Read repeated
bool
field into given vec. - read_
repeated_ bytes_ into - Read repeated
bytes
field into given vec. - read_
repeated_ double_ into - Read repeated
double
field into given vec. - read_
repeated_ enum_ into - Read repeated
enum
field into given vec. This function is no longer called from generated code, remove in 1.5. - read_
repeated_ enum_ with_ unknown_ fields_ into - Read repeated
enum
field into given vec, and when value is unknown store it in unknown fields which matches proto2 spec. - read_
repeated_ fixed32_ into - Read repeated
fixed32
field into given vec. - read_
repeated_ fixed64_ into - Read repeated
fixed64
field into given vec. - read_
repeated_ float_ into - Read repeated
float
field into given vec. - read_
repeated_ int32_ into - Read repeated
int32
field into given vec. - read_
repeated_ int64_ into - Read repeated
int64
field into given vec. - read_
repeated_ message_ into - Read repeated
message
field. - read_
repeated_ sfixed32_ into - Read repeated
sfixed32
field into given vec. - read_
repeated_ sfixed64_ into - Read repeated
sfixed64
field into given vec. - read_
repeated_ sint32_ into - Read repeated
sint32
field into given vec. - read_
repeated_ sint64_ into - Read repeated
sint64
field into given vec. - read_
repeated_ string_ into - Read repeated
string
field into given vec. - read_
repeated_ uint32_ into - Read repeated
uint32
field into given vec. - read_
repeated_ uint64_ into - Read repeated
uint64
field into given vec. - read_
singular_ bytes_ into - Read singular
bytes
field. - read_
singular_ message_ into - Read singular
message
field. - read_
singular_ proto3_ bytes_ into - Read singular
bytes
field for proto3. - read_
singular_ proto3_ string_ into - Read singular
string
field for proto3. - read_
singular_ string_ into - Read singular
string
field. - read_
unknown_ or_ skip_ group - Handle unknown field in generated code. Either store a value in unknown, or skip a group.
- string_
size - Size of encoded string field.
- tag_
size - Compute tag size. Size of tag does not depend on wire type.
- unexpected_
wire_ type - Create an error for unexpected wire type.
- unknown_
fields_ size - Size of encoded unknown fields size.
- value_
size - Integer value size when encoded as specified wire type.
- value_
varint_ zigzag_ size - Length of value when encoding with zigzag encoding with tag
- value_
varint_ zigzag_ size_ no_ tag - Integer value size when encoded as specified wire type.
- vec_
packed_ enum_ data_ size - Size of serialized repeated packed enum field, excluding length and tag.
- vec_
packed_ enum_ size - Size of serialized data with length prefix and tag
- vec_
packed_ varint_ data_ size - Size of serialized repeated packed field, excluding length and tag.
- vec_
packed_ varint_ size - Size of serialized data with length prefix and tag
- vec_
packed_ varint_ zigzag_ data_ size - Size of serialized repeated packed field, excluding length and tag.
- vec_
packed_ varint_ zigzag_ size - Size of serialized data with length prefix and tag
- write_
map_ with_ cached_ sizes - Write map, message sizes must be already known.