Function bao_tree::io::fsm::encode_ranges   
source · pub async fn encode_ranges<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 will not validate on writing, so data corruption will be detected on reading