pub fn round_up_to_chunks(ranges: &RangeSetRef<u64>) -> ChunkRanges
Expand description
Given a range set of byte ranges, round it up to full chunks.
E.g. a byte range from 1..3 will be converted into the chunk range 0..1 (0..1024 bytes).
pub fn round_up_to_chunks(ranges: &RangeSetRef<u64>) -> ChunkRanges
Given a range set of byte ranges, round it up to full chunks.
E.g. a byte range from 1..3 will be converted into the chunk range 0..1 (0..1024 bytes).