pub fn unpack_uint(slice: &[u8], nbytes: u8) -> u64
unpack_uint is the dual of pack_uint. It unpacks the integer at the current position in slice after reading nbytes bytes.
slice
nbytes
nbytes must be >= 1 and <= 8.