| 99 | } |
| 100 | |
| 101 | int64_t FileSource::Size() const { |
| 102 | if (filesystem_) { |
| 103 | return file_info_.size(); |
| 104 | } |
| 105 | if (buffer_) { |
| 106 | return buffer_->size(); |
| 107 | } |
| 108 | return custom_size_; |
| 109 | } |
| 110 | |
| 111 | Result<std::shared_ptr<io::InputStream>> FileSource::OpenCompressed( |
| 112 | std::optional<Compression::type> compression) const { |
no test coverage detected