Function unsigned_varint::encode::u16

source ·
pub fn u16(number: u16, buf: &mut [u8; 3]) -> &[u8] 
Expand description

Encode the given u16 into the given byte array.

Returns the slice of encoded bytes.