Function pack_uint

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

pack_uint packs the given integer in the smallest number of bytes possible, and writes it to the given writer. The number of bytes written is returned on success.