Skip to main content

fetch_blob_into

Function fetch_blob_into 

Source
pub async fn fetch_blob_into<S: BlobSource, W: Write>(
    source: &S,
    hash: &str,
    expected_len: u64,
    sink: &mut W,
) -> Result<(), FetchError>
Expand description

Fetch a whole blob into sink with bounded Range windows, verifying it against its content address — the unmetered convenience over RangedFetcher::fetch_into, and the bounded-memory counterpart of fetch_blob. sink holds unverified bytes until this returns Ok.