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