Skip to main content

decode_varint

Function decode_varint 

Source
pub fn decode_varint(data: &[u8]) -> Result<(u64, usize)>
Expand description

Decode an unsigned LEB128 varint from a byte slice. Returns (value, bytes_consumed).