1#pragma once
2
3#include <iostream>
4
5#include <IO/ReadBuffer.h>
6#include <IO/BufferWithOwnMemory.h>
7
8
9namespace DB
10{
11
12class ReadBufferFromIStream : public BufferWithOwnMemory<ReadBuffer>
13{
14private:
15 std::istream & istr;
16
17 bool nextImpl() override;
18
19public:
20 ReadBufferFromIStream(std::istream & istr_, size_t size = DBMS_DEFAULT_BUFFER_SIZE);
21};
22
23}
24