mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
24 lines
356 B
C++
24 lines
356 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#include <IO/ReadBuffer.h>
|
|
#include <IO/BufferWithOwnMemory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ReadBufferFromIStream : public BufferWithOwnMemory<ReadBuffer>
|
|
{
|
|
private:
|
|
std::istream & istr;
|
|
|
|
bool nextImpl() override;
|
|
|
|
public:
|
|
ReadBufferFromIStream(std::istream & istr_, size_t size = DBMS_DEFAULT_BUFFER_SIZE);
|
|
};
|
|
|
|
}
|