Module rt

Source
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§

CachedSize
Cached size field used in generated code.
Lazy
Lazily initialized static variable.

Enums§

WireType
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.