mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
22 lines
308 B
C++
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);
|
|
|
|
}
|