Skip to main content

decode

Function decode 

Source
pub fn decode(
    block: &[u8],
    max_section_size: u64,
) -> Result<Vec<Field>, Violation>
Expand description

Decodes an encoded field section.

max_section_size is the value advertised in SETTINGS_MAX_FIELD_SECTION_SIZE; a peer that ignores it is cut off at that point rather than allowed to make this server accumulate fields for it.