googleapis / googleapis/google-cloud-rust

Helper functions to collect N bytes from an object download

Open
#2,856 0 comments 0 reactions 0 assignees View on GitHub
api: storage priority: p3 type: feature request
Dominant language
Rust
Stars
955
Forks
144
Avg merge
1d 5h
Merged PRs (30d)
279

Description

When downloading objects it might be convenient to download N bytes into a buffer.

We used to have a function to download *all* the bytes, but this can be dangerous if the application does not check the size of the object.

Separately: consider if we want a function to collect up to N bytes into a `bytes::Buf` but without making any data copies.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.