ClickHouse/src/IO/NullWriteBuffer.h
2023-06-16 16:38:18 +02:00

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];
};
}