Skip to main content

decode_prefix

Function decode_prefix 

Source
pub fn decode_prefix<T: Decode>(
    bytes: &[u8],
) -> Result<(T, usize), DecoderError>
Expand description

Decodes one value from the start of bytes and returns it with the number of octets it used.