Skip to main content

read_bounded_len

Function read_bounded_len 

Source
pub fn read_bounded_len<R>(
    source: &mut R,
    label: &str,
    min_element_size: usize,
) -> Result<usize, DeserializationError>
where R: ByteReader,
Expand description

Reads and validates a serialized length before it is used for allocation.