#pragma once #include #include #include namespace DB { class ReadBufferFromIStream : public BufferWithOwnMemory { private: std::istream & istr; bool nextImpl() override; public: explicit ReadBufferFromIStream(std::istream & istr_, size_t size = DBMS_DEFAULT_BUFFER_SIZE); }; }