| 10 | namespace buffer { |
| 11 | |
| 12 | FilesFromTAR::FilesFromTAR( |
| 13 | const std::string& tarfile, |
| 14 | bool nested, |
| 15 | int num_threads) { |
| 16 | core::TARReader tarreader(tarfile, nested, num_threads); |
| 17 | files_ = tarreader.get_file_list(); |
| 18 | } |
| 19 | |
| 20 | Sample FilesFromTAR::get(int64_t idx) const { |
| 21 | if (idx < 0 || idx >= files_.size()) { |
nothing calls this directly
no test coverage detected