unsigned_varint::encode
pub fn u16(number: u16, buf: &mut [u8; 3]) -> &[u8]
Encode the given u16 into the given byte array.
u16
Returns the slice of encoded bytes.