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 | |
8 | namespace DB |
9 | { |
10 | |
11 | class CompressionCodecNone : public ICompressionCodec |
12 | { |
13 | public: |
14 | UInt8 getMethodByte() const override; |
15 | |
16 | String getCodecDesc() const override; |
17 | |
18 | protected: |
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 | |
25 | class CompressionCodecFactory; |
26 | void registerCodecNone(CompressionCodecFactory & factory); |
27 | } |
28 |