Skip to main content

encode_integer

Function encode_integer 

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

Appends value as an integer with a prefix_bits-bit prefix (§5.1), the high bits of the first octet set to flags.