| 1331 | } |
| 1332 | |
| 1333 | Result<S3Model::GetObjectResult> GetObjectRange(Aws::S3::S3Client* client, |
| 1334 | const S3Path& path, |
| 1335 | const std::string& sse_customer_key, |
| 1336 | int64_t start, int64_t length, |
| 1337 | void* out) { |
| 1338 | S3Model::GetObjectRequest req; |
| 1339 | req.SetBucket(ToAwsString(path.bucket)); |
| 1340 | req.SetKey(ToAwsString(path.key)); |
| 1341 | RETURN_NOT_OK(SetSSECustomerKey(&req, sse_customer_key)); |
| 1342 | req.SetRange(ToAwsString(FormatRange(start, length))); |
| 1343 | req.SetResponseStreamFactory(AwsWriteableStreamFactory(out, length)); |
| 1344 | return OutcomeToResult("GetObject", client->GetObject(req)); |
| 1345 | } |
| 1346 | |
| 1347 | template <typename ObjectResult> |
| 1348 | std::shared_ptr<const KeyValueMetadata> GetObjectMetadata(const ObjectResult& result) { |
nothing calls this directly
no test coverage detected