Function unsigned_varint::encode::u8

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

Encode the given u8 into the given byte array.

Returns the slice of encoded bytes.