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