Expand description
Implementation of the varu64 format in rust.
Modules§
- nb
- Nonblocking encoding and decoding.
Enums§
- Decode
Error - Everything that can go wrong when decoding a varu64.
Functions§
- decode
- Decode a
u64
from theinput
buffer, returning the number and the remaining bytes. - decode_
non_ zero_ u64 - Decode a
NonZeroU64
from theinput
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.