Expand description
Low-level definitions for working with the wire format.
External code generally should not use things from this module; instead,
prefer the stream module if you want to do lower-level streaming.
Structs§
- Descriptor
- A descriptor for an element in a struct, or a marker for the end of the struct or other special functions.
Enums§
- Descriptor
Type - The type of the value (if any) following a normal
Descriptor. - Parsed
Descriptor - A
Descriptorin a more structured format. - Special
Type - The interpretation of a special
Descriptor.
Functions§
- decode_
descriptor - Read a descriptor from the given input.
- decode_
i64 - Decode a 64-bit integer and then unZigZag it to a signed value.
- decode_
u64 - Decode an unsigned integer from the given input, parsing up to 64 bits.
- encode_
descriptor - Write a descriptor to the given output.
- encode_
fixed_ u64 - Encodes an unsigned 64-bit integer to the given output.
- encode_
i64 - ZigZag the given signed 64-bit integer to unsigned format, then write it to the given output.
- encode_
u64 - Encode an unsigned 64-bit integer to the given output.
- unzigzag
- Invert
zigzag. - zigzag
- ZigZag the given signed 64-bit integer into the unsigned storage format.