| 23 | |
| 24 | template <typename T> |
| 25 | static std::optional<size_t> tryGetFileSize(T & in) |
| 26 | { |
| 27 | if (auto * with_file_size = dynamic_cast<WithFileSize *>(&in)) |
| 28 | return with_file_size->tryGetFileSize(); |
| 29 | |
| 30 | return std::nullopt; |
| 31 | } |
| 32 | |
| 33 | template <typename T> |
| 34 | static size_t getFileSize(T & in) |
no test coverage detected