Function pack_uint_in

Source
pub fn pack_uint_in<W: Write>(wtr: W, n: u64, nbytes: u8) -> Result<()>
Expand description

pack_uint_in is like pack_uint, but always uses the number of bytes given to pack the number given.

nbytes must be >= pack_size(n) and <= 8, where pack_size(n) is the smallest number of bytes that can store the integer given.