1#pragma once
2
3#include <IO/WriteBuffer.h>
4#include <Compression/ICompressionCodec.h>
5#include <IO/BufferWithOwnMemory.h>
6#include <Parsers/StringRange.h>
7
8namespace DB
9{
10
11class CompressionCodecNone : public ICompressionCodec
12{
13public:
14 UInt8 getMethodByte() const override;
15
16 String getCodecDesc() const override;
17
18protected:
19 UInt32 doCompressData(const char * source, UInt32 source_size, char * dest) const override;
20
21 void doDecompressData(const char * source, UInt32 source_size, char * dest, UInt32 uncompressed_size) const override;
22
23};
24
25class CompressionCodecFactory;
26void registerCodecNone(CompressionCodecFactory & factory);
27}
28