check_range_in_bounds

Function check_range_in_bounds 

Source
pub fn check_range_in_bounds(
    total_len: usize,
    offset: usize,
    size: usize,
    label: &str,
) -> Result<(), BinaryLayoutError>
Expand description

Validates that [offset, offset + size) is within total_len.