| 49 | } |
| 50 | |
| 51 | size_t getFileSizeFromReadBuffer(ReadBuffer & in) |
| 52 | { |
| 53 | if (auto maybe_size = tryGetFileSizeFromReadBuffer(in)) |
| 54 | return *maybe_size; |
| 55 | |
| 56 | throw Exception(ErrorCodes::UNKNOWN_FILE_SIZE, "Cannot find out file size"); |
| 57 | } |
| 58 | |
| 59 | bool isBufferWithFileSize(const ReadBuffer & in) |
| 60 | { |
no test coverage detected