Skip to main content

decode_varint

Function decode_varint 

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

Decodes a varint from the front of input.

Returns the value and the number of bytes consumed.