Function zarrs::byte_range::extract_byte_ranges
source · pub fn extract_byte_ranges(
bytes: &[u8],
byte_ranges: &[ByteRange]
) -> Result<Vec<Vec<u8>>, InvalidByteRangeError>
Expand description
Extract byte ranges from bytes.
§Errors
Returns InvalidByteRangeError
if any bytes are requested beyond the end of bytes
.