| 36 | } |
| 37 | |
| 38 | S3Params S3BucketReader::constructReaderParams(BucketContent& key) { |
| 39 | // encode the key name but leave the "/" |
| 40 | // "/encoded_path/encoded_name" |
| 41 | string keyEncoded = UriEncode(key.getName()); |
| 42 | FindAndReplace(keyEncoded, "%2F", "/"); |
| 43 | |
| 44 | S3Params readerParams = this->params.setPrefix(keyEncoded); |
| 45 | |
| 46 | readerParams.setKeySize(key.getSize()); |
| 47 | |
| 48 | S3DEBUG("key: %s, size: %" PRIu64, readerParams.getS3Url().getFullUrlForCurl().c_str(), |
| 49 | readerParams.getKeySize()); |
| 50 | return readerParams; |
| 51 | } |
| 52 | |
| 53 | uint64_t S3BucketReader::readWithoutHeaderLine(char* buf, uint64_t count) { |
| 54 | char* current = NULL; |
nothing calls this directly
no test coverage detected