Crate varinteger[][src]

Functions

decode

Decode a byte slice into a u64 integer. Returns how many bytes were decoded.

decode_with_offset

Decode a byte slice into a u64 integer at a specific offset. Returns how many bytes were decoded.

encode

Encode a u64 integer to the byte slice. Returns how many bytes were encoded.

encode_with_offset

Encode a u64 integer at a specific offset in the byte slice. Returns how many bytes were encoded.

length

Returns how many bytes are needed to encode a value.

signed_decode

Decode a byte slice into a i64 (signed) integer. Returns how many bytes were decoded.

signed_decode_with_offset

Decode a byte slice into a i64 (signed) integer at a specific offset. Returns how many bytes were decoded.

signed_encode

Encode a i64 (signed) integer at a specific offset in the byte slice. Returns how many bytes were encoded.

signed_encode_with_offset

Encode a i64 (signed) integer at a specific offset in the byte slice. Returns how many bytes were encoded.

signed_length

Returns how many bytes are needed to encode a value.