ClickHouse/dbms/IO/ReadBufferFromIStream.h

24 lines
356 B
C++
Raw Normal View History

2011-10-15 23:40:56 +00:00
#pragma once
2010-05-28 19:13:55 +00:00
#include <iostream>
#include <IO/ReadBuffer.h>
#include <IO/BufferWithOwnMemory.h>
2010-05-28 19:13:55 +00:00
namespace DB
{
class ReadBufferFromIStream : public BufferWithOwnMemory<ReadBuffer>
2010-05-28 19:13:55 +00:00
{
private:
std::istream & istr;
2018-07-09 20:36:58 +00:00
bool nextImpl() override;
2011-06-26 21:30:59 +00:00
public:
2018-07-09 20:36:58 +00:00
ReadBufferFromIStream(std::istream & istr_, size_t size = DBMS_DEFAULT_BUFFER_SIZE);
2010-05-28 19:13:55 +00:00
};
}