Module uint

Source

Structs§

DecodedUInt
Represents a fixed-length unsigned integer. See the UInt and Int Fields section of the binary Ion spec for more details.
EncodedUInt
The big-endian, compact slice of bytes for a UInt (u64). Leading zero octets are not part of the representation. See the spec for more information.

Enums§

UIntBeBytes
A buffer for storing a UInt’s Big Endian bytes. UInts that can fit in a u64 will use the Stack storage variant, meaning that no heap allocations are required in the common case.

Functions§

encode_u64
Returns the magnitude as big-endian bytes.
encode_uint
Returns the magnitude as big-endian bytes.