mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
19 lines
269 B
C++
19 lines
269 B
C++
|
#pragma once
|
||
|
|
||
|
#include <IO/ReadBuffer.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
/// Just a stub - reads nothing from nowhere.
|
||
|
class EmptyReadBuffer : public ReadBuffer
|
||
|
{
|
||
|
public:
|
||
|
EmptyReadBuffer() : ReadBuffer(nullptr, 0) {}
|
||
|
|
||
|
private:
|
||
|
bool nextImpl() override { return false; }
|
||
|
};
|
||
|
|
||
|
}
|