Skip to main content

Crate varu64

Crate varu64 

Source
Expand description

Implementation of the varu64 format in rust.

Modules§

nb
Nonblocking encoding and decoding.

Enums§

DecodeError
Everything that can go wrong when decoding a varu64.

Functions§

decode
Decode a u64 from the input buffer, returning the number and the remaining bytes.
decode_non_zero_u64
Decode a NonZeroU64 from the input buffer, returning the number and the remaining bytes.
encode
Encodes n into the output buffer, returning how many bytes have been written.
encode_non_zero_u64
Encodes n: NonZeroU64 into the output buffer, returning how many bytes have been written.
encode_write
Encodes n into the writer, returning how many bytes have been written.
encoding_length
Return how many bytes the encoding of n will take up.
encoding_length_non_zero_u64
Return how many bytes the encoding of n: NonZeroU64 will take up.