Skip to main content

decode_integer

Function decode_integer 

Source
pub fn decode_integer(
    input: &[u8],
    prefix_bits: u32,
) -> Result<(u64, &[u8]), Error>
Expand description

RFC 7541 section 5.1: an integer with an n-bit prefix, continued in seven-bit groups when the prefix is all ones.

Returns the value and the remaining input.