Skip to main content

fetch_chunk_and_seek

Function fetch_chunk_and_seek 

Source
async fn fetch_chunk_and_seek(
    chunk_digest: B3Digest,
    start_pos: u64,
    truncate_size: Option<u64>,
    chunk_store: impl ChunkStore,
) -> Result<Cursor<Chunk>>
Expand description

Fetches a Chunk, wraps it in a Cursor and seeks to the specified position, optionally truncating to a size.