Module varint

Module varint 

Source

Functionsยง

decode_varint
Read a varint from a byte slice (convenience wrapper)
encode_varint
Write a varint to a byte vector (convenience wrapper)
read_fixed_u64
Read a fixed 8-byte unsigned integer
read_varint
Read a value with variable-length encoding Returns (value, bytes_read)
write_fixed_u64
Write a fixed 8-byte unsigned integer
write_varint
Write a value with variable-length encoding Format: [num_bytes: u8][value bytes in big-endian] Returns number of bytes written