MCPcopy Create free account
hub / github.com/ByConity/ByConity / getFileSize

Function getFileSize

src/IO/WithFileSize.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13template <typename T>
14static 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
24size_t getFileSizeFromReadBuffer(ReadBuffer & in)
25{

Callers 3

getFileSizeMethod · 0.50
setReadUntilEndMethod · 0.50

Calls 2

ExceptionClass · 0.50
getFileSizeMethod · 0.45

Tested by

no test coverage detected