pub fn decode_varint<'a>(data: &'a [u8]) -> Result<(u64, &'a [u8]), Error>
Decodes an order-preserving varint from the beginning of data.
data
Returns the decoded u64 value and the remaining unconsumed slice.
u64