Crate varu64[][src]

Expand description

Implementation of the varu64 format in rust.

Modules

Nonblocking encoding and decoding.

Enums

Everything that can go wrong when decoding a varu64.

Functions

Decode a u64 from the input buffer, returning the number and the remaining bytes.

Decode a NonZeroU64 from the input buffer, returning the number and the remaining bytes.

Encodes n into the output buffer, returning how many bytes have been written.

Encodes n: NonZeroU64 into the output buffer, returning how many bytes have been written.

Encodes n into the writer, returning how many bytes have been written.

Return how many bytes the encoding of n will take up.

Return how many bytes the encoding of n: NonZeroU64 will take up.