Skip to main content

encode_integer

Function encode_integer 

Source
pub fn encode_integer(
    value: usize,
    prefix_bits: u8,
    first: u8,
    out: &mut Vec<u8>,
)
Expand description

Encodes value with an N-bit prefix (RFC 7541 §5.1); first holds the high bits of the first byte.