Function sp800_185::utils::left_encode [] [src]

pub fn left_encode(buf: &mut [u8; 9], value: u64) -> usize

left_encode(x) encodes the integer x as a byte string in a way that can be unambiguously parsed from the beginning of the string by inserting the length of the byte string before the byte string representation of x.