ClickHouse/src/IO/WithFileSize.h
2022-06-20 15:22:56 +02:00

22 lines
308 B
C++

#pragma once
#include <base/types.h>
#include <optional>
namespace DB
{
class ReadBuffer;
class WithFileSize
{
public:
virtual size_t getFileSize() = 0;
virtual ~WithFileSize() = default;
};
bool isBufferWithFileSize(const ReadBuffer & in);
size_t getFileSizeFromReadBuffer(ReadBuffer & in);
}