ClickHouse/src/IO/ReadBufferFromIStream.h
Nikita Mikhaylov b3094412b1 better
2021-04-13 22:39:42 +03:00

24 lines
365 B
C++

#pragma once
#include <iostream>
#include <IO/ReadBuffer.h>
#include <IO/BufferWithOwnMemory.h>
namespace DB
{
class ReadBufferFromIStream : public BufferWithOwnMemory<ReadBuffer>
{
private:
std::istream & istr;
bool nextImpl() override;
public:
explicit ReadBufferFromIStream(std::istream & istr_, size_t size = DBMS_DEFAULT_BUFFER_SIZE);
};
}