Skip to content

Support partial reads in storage::Client::ReadObject. #1732

@coryan

Description

@coryan

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...
  }
}

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions