pub fn u8(number: u8, buf: &mut [u8; 2]) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Encode the given u8 into the given byte array.
u8
Returns the slice of encoded bytes.