Function unpack_uint

Source
pub fn unpack_uint(slice: &[u8], nbytes: u8) -> u64
Expand description

unpack_uint is the dual of pack_uint. It unpacks the integer at the current position in slice after reading nbytes bytes.

nbytes must be >= 1 and <= 8.