Skip to main content

coalesce_byte_ranges

Function coalesce_byte_ranges 

Source
pub fn coalesce_byte_ranges(
    ranges: &[ByteRange],
    max_gap: u64,
) -> Vec<ByteRange>
Expand description

Merge overlapping or near-adjacent ranges (gap <= max_gap) into one.