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 - Cached size field used in generated code.
- Lazy
- Lazily initialized static variable.
Enums§
- Wire
Type - All supported “wire types” are listed in this enum.
Functions§
- bytes_
size - Size of encoded bytes field.
- compute_
raw_ varint64_ size - Given
u64
value compute varint encoded length. - int32_
size - Encoded
int32
size. - int64_
size - Encoded
int64
size. - read_
repeated_ packed_ enum_ or_ unknown_ into - Read repeated enum field when the wire format is length-delimited.
- read_
singular_ message_ into_ field - Read singular
message
field. - read_
unknown_ or_ skip_ group - Handle unknown field in generated code. Either store a value in unknown, or skip a group. Return error if tag is incorrect.
- sint32_
size - Size of serialized
sint32
field. - sint64_
size - Size of serialized
sint64
field. - skip_
field_ for_ tag - Skip field.
- string_
size - Size of encoded string field.
- tag_
size - Compute tag size. Size of tag does not depend on wire type.
- uint32_
size - Encoded
uint32
size. - uint64_
size - Encoded
uint64
size. - unknown_
fields_ size - Size of encoded unknown fields size.
- vec_
packed_ bool_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ double_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ enum_ or_ unknown_ size - Size of serialized data with length prefix and tag
- vec_
packed_ fixed32_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ fixed64_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ float_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ int32_ size - Size of serialized data with length prefix and tag.
- vec_
packed_ int64_ size - Size of serialized data with length prefix and tag.
- vec_
packed_ sfixed32_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ sfixed64_ size - Compute data size of fixed encoding of repeated field data.
- vec_
packed_ sint32_ size - Size of serialized data with length prefix and tag.
- vec_
packed_ sint64_ size - Size of serialized data with length prefix and tag.
- vec_
packed_ uint32_ size - Size of serialized data with length prefix and tag.
- vec_
packed_ uint64_ size - Size of serialized data with length prefix and tag.
- write_
message_ field_ with_ cached_ size - Write message with field number and length to the stream.