Function zarrs::array::codec::extract_byte_ranges_read

source ·
pub fn extract_byte_ranges_read<T: Read>(
    bytes: &mut T,
    size: u64,
    byte_ranges: &[ByteRange]
) -> Result<Vec<Vec<u8>>>
Expand description

Extract byte ranges from bytes implementing Read.

§Errors

Returns a std::io::Error if there is an error reading from bytes. This can occur if the byte range is out-of-bounds of the bytes.

§Panics

Panics if a byte has length exceeding usize::MAX.