Function unsigned_varint::decode::u16

source ·
pub fn u16(buf: &[u8]) -> Result<(u16, &[u8]), Error>
Expand description

Decode the given slice as u16.

Returns the value and the remaining slice.