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