| 12 | |
| 13 | template <typename T> |
| 14 | static size_t getFileSize(T & in) |
| 15 | { |
| 16 | if (auto * with_file_size = dynamic_cast<WithFileSize *>(&in)) |
| 17 | { |
| 18 | return with_file_size->getFileSize(); |
| 19 | } |
| 20 | |
| 21 | throw Exception(ErrorCodes::UNKNOWN_FILE_SIZE, "Cannot find out file size"); |
| 22 | } |
| 23 | |
| 24 | size_t getFileSizeFromReadBuffer(ReadBuffer & in) |
| 25 | { |
no test coverage detected