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
u64from theinputbuffer, returning the number and the remaining bytes. - decode_
non_ zero_ u64 - Decode a
NonZeroU64from theinputbuffer, returning the number and the remaining bytes. - encode
- Encodes
ninto the output buffer, returning how many bytes have been written. - encode_
non_ zero_ u64 - Encodes
n: NonZeroU64into the output buffer, returning how many bytes have been written. - encode_
write - Encodes
ninto the writer, returning how many bytes have been written. - encoding_
length - Return how many bytes the encoding of
nwill take up. - encoding_
length_ non_ zero_ u64 - Return how many bytes the encoding of
n: NonZeroU64will take up.