Function zarrs::byte_range::extract_byte_ranges_unchecked

source ·
pub unsafe fn extract_byte_ranges_unchecked(
    bytes: &[u8],
    byte_ranges: &[ByteRange]
) -> Vec<Vec<u8>>
Expand description

Extract byte ranges from bytes.

§Safety

All byte ranges in byte_ranges must specify a range within bytes.

§Panics

Panics if attempting to reference a byte beyond usize::MAX.