Function zarrs::array::codec::extract_byte_ranges_read_seek
source · pub fn extract_byte_ranges_read_seek<T: Read + Seek>(
bytes: &mut T,
byte_ranges: &[ByteRange],
) -> Result<Vec<Vec<u8>>>
Expand description
Extract byte ranges from bytes implementing Read
and Seek
.
§Errors
Returns a std::io::Error
if there is an error reading or seeking 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
.