Module wire

Module wire 

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

DescriptorType
The type of the value (if any) following a normal Descriptor.
ParsedDescriptor
A Descriptor in a more structured format.
SpecialType
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.