valid_ranges

Function valid_ranges 

Source
pub fn valid_ranges<'a, O, D>(
    outboard: O,
    data: D,
    ranges: &'a ChunkRangesRef,
) -> impl IntoIterator<Item = Result<Range<ChunkNum>>> + 'a
where O: Outboard + 'a, D: ReadAt + 'a,
Expand description

Given a data file and an outboard, compute all valid ranges.

This is not cheap since it recomputes the hashes for all chunks.

To reduce the amount of work, you can specify a range you are interested in.