We need to support partial reads in storage::Client::ReadObject (i.e. reading a range of bytes from the object). This will allow application developers to download the file "in parallel" with multiple threads reading different sections of the object.
In principle something like:
void F(google::cloud::storage::Client client) {
// Read the first 32MiB
auto stream = client.ReadObject(
"my-bucket", "my-object", google::cloud::storage::Range(0, 32 * 1024, 1024));
while(not stream.eof()) {
// Do stuff...
}
}
We need to support partial reads in
storage::Client::ReadObject(i.e. reading a range of bytes from the object). This will allow application developers to download the file "in parallel" with multiple threads reading different sections of the object.In principle something like: