MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getFileSizeFromReadBuffer

Function getFileSizeFromReadBuffer

src/IO/WithFileSize.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51size_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
59bool isBufferWithFileSize(const ReadBuffer & in)
60{

Callers 8

getCacheReadBufferFunction · 0.85
readFromFileSegmentMethod · 0.85
asORCInputStreamFunction · 0.85
GetSizeMethod · 0.85
asArrowFileFunction · 0.85

Calls 2

ExceptionClass · 0.70

Tested by

no test coverage detected