Function bao_tree::io::sync::encode_ranges

source ·
pub fn encode_ranges<D: ReadAt + Size, O: Outboard, W: Write>(
    data: D,
    outboard: O,
    ranges: &RangeSetRef<ChunkNum>,
    encoded: W
) -> Result<(), EncodeError>
Expand description

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

This will not validate on writing, so data corruption will be detected on reading