Crate varintbuf

Source

Functionsยง

decode
Read a u64 from a bytes::Buf.
encode
Encode a u64 integer to the bytes::BufMut. Returns how many bytes were encoded.
length
Returns how many bytes are needed to encode a value.
signed_decode
Decode a single i64 (signed) integer from a bytes::Buf.
signed_encode
Encode a i64 (signed) integer in the bytes::BufMut. Returns how many bytes were encoded.
signed_length
Returns how many bytes are needed to encode a value.