Skip to main content

decode_varint

Function decode_varint 

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

Decodes an order-preserving varint from the beginning of data.

Returns the decoded u64 value and the remaining unconsumed slice.