pub fn decode_prefix<T: Decode>( bytes: &[u8], ) -> Result<(T, usize), DecoderError>
Decodes one value from the start of bytes and returns it with the number of octets it used.
bytes