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