mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
22 lines
361 B
C++
22 lines
361 B
C++
#pragma once
|
|
|
|
#include <IO/WriteBuffer.h>
|
|
#include <IO/BufferWithOwnMemory.h>
|
|
#include <boost/noncopyable.hpp>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Simply do nothing, can be used to measure amount of written bytes.
|
|
class NullWriteBuffer : public WriteBuffer, boost::noncopyable
|
|
{
|
|
public:
|
|
NullWriteBuffer();
|
|
void nextImpl() override;
|
|
|
|
private:
|
|
char data[128];
|
|
};
|
|
|
|
}
|