Function unsigned_varint::encode::u16
source · [−]pub fn u16(number: u16, buf: &mut [u8; 3]) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Expand description
Encode the given u16
into the given byte array.
Returns the slice of encoded bytes.