Skip to main content

decode_length_prefixed_plain

Function decode_length_prefixed_plain 

Source
pub(super) fn decode_length_prefixed_plain(
    data: Bytes,
    num_values: usize,
    type_length: usize,
    expected_len: usize,
    page: &str,
) -> Result<Bytes>
Expand description

Remove BYTE_ARRAY length prefixes from a noncanonical PLAIN FLBA section. The caller has checked expected_len = num_values * type_length for overflow and established that the input does not have that canonical length.