MCPcopy Create free account
hub / github.com/apache/arrow / AwsWriteableStreamFactory

Function AwsWriteableStreamFactory

cpp/src/arrow/filesystem/s3fs.cc:1329–1331  ·  view source on GitHub ↗

By default, the AWS SDK reads object data into an auto-growing StringStream. To avoid copies, read directly into our preallocated buffer instead. See https://github.com/aws/aws-sdk-cpp/issues/64 for an alternative but functionally similar recipe.

Source from the content-addressed store, hash-verified

1327// See https://github.com/aws/aws-sdk-cpp/issues/64 for an alternative but
1328// functionally similar recipe.
1329Aws::IOStreamFactory AwsWriteableStreamFactory(void* data, int64_t nbytes) {
1330 return [=]() { return Aws::New<StringViewStream>("", data, nbytes); };
1331}
1332
1333Result<S3Model::GetObjectResult> GetObjectRange(Aws::S3::S3Client* client,
1334 const S3Path& path,

Callers 1

GetObjectRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected