check_slice_in_bounds

Function check_slice_in_bounds 

Source
pub fn check_slice_in_bounds(
    bytes: &[u8],
    offset: usize,
    size: usize,
    label: &str,
) -> Result<(), BinaryLayoutError>
Expand description

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