Skip to main content

decode_integer

Function decode_integer 

Source
pub fn decode_integer(
    slice: &[u8],
    prefix_bits: u8,
) -> Result<(usize, usize), FetchError>
Expand description

Decodes an integer from a byte slice with a given prefix size per RFC 7541 Section 5.1.