unsigned_varint::decode
pub fn u16(buf: &[u8]) -> Result<(u16, &[u8]), Error>
Decode the given slice as u16.
u16
Returns the value and the remaining slice.