googleapis / googleapis/google-cloud-rust
Helper functions to collect N bytes from an object download
Open
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
Assessment
This issue has not been assessed yet.