pub fn valid_ranges<'a, O, D>(
outboard: O,
data: D,
ranges: &'a ChunkRangesRef,
) -> impl IntoIterator<Item = Result<Range<ChunkNum>>> + '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.