traverse_ranges_validated

Function traverse_ranges_validated 

Source
pub async fn traverse_ranges_validated<D, O, F>(
    data: D,
    outboard: O,
    ranges: &ChunkRangesRef,
    send: &mut F,
) -> Result<(), F::Error>
where D: ReadBytesAt, O: Outboard, F: Sender,
Expand description

Traverse ranges relevant to a query from a reader and outboard to a stream

This function validates the data before writing.

It is possible to encode ranges from a partial file and outboard. This will either succeed if the requested ranges are all present, or fail as soon as a range is missing.