unsigned_varint::encode

Function usize

Source
pub fn usize(number: usize, buf: &mut [u8; 10]) -> &[u8] 
Expand description

Encode the given usize into the given byte array.

Returns the slice of encoded bytes.