ClickHouse/dbms/src/IO/ReadBufferFromIStream.h
2018-07-10 23:46:10 +03:00

24 lines
356 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:
ReadBufferFromIStream(std::istream & istr_, size_t size = DBMS_DEFAULT_BUFFER_SIZE);
};
}