pub fn decode_varint(input: &[u8]) -> Result<(u64, usize), VarintError>
Decodes a varint from the front of input.
input
Returns the value and the number of bytes consumed.