ClickHouse/src/IO/ReadBufferFromFileBase.cpp
Azat Khuzhin e548dae8d9 Pass size of the file to the readers
v2: s/size/file_size/g
2022-01-04 10:53:17 +03:00

23 lines
493 B
C++

#include <IO/ReadBufferFromFileBase.h>
namespace DB
{
ReadBufferFromFileBase::ReadBufferFromFileBase() : BufferWithOwnMemory<SeekableReadBuffer>(0)
{
}
ReadBufferFromFileBase::ReadBufferFromFileBase(
size_t buf_size,
char * existing_memory,
size_t alignment,
std::optional<size_t> file_size_)
: BufferWithOwnMemory<SeekableReadBuffer>(buf_size, existing_memory, alignment)
, file_size(file_size_)
{
}
ReadBufferFromFileBase::~ReadBufferFromFileBase() = default;
}