pub async fn encode_ranges_validated<D, O, W>(
    data: D,
    outboard: O,
    ranges: &RangeSetRef<ChunkNum>,
    encoded: W
) -> Result<(), EncodeError>where
    D: AsyncSliceReader,
    O: Outboard,
    W: AsyncWrite + Unpin,
Expand description

Encode ranges relevant to a query from a reader and outboard to a writer

This function validates the data before writing