ClickHouse/src/Compression/CompressionCodecNone.h

28 lines
650 B
C++
Raw Normal View History

2018-10-11 02:57:48 +00:00
#pragma once
#include <IO/WriteBuffer.h>
#include <Compression/ICompressionCodec.h>
#include <IO/BufferWithOwnMemory.h>
#include <Parsers/StringRange.h>
namespace DB
{
class CompressionCodecNone : public ICompressionCodec
{
public:
2020-01-03 14:39:24 +00:00
uint8_t getMethodByte() const override;
2018-10-11 02:57:48 +00:00
2018-12-19 17:20:18 +00:00
String getCodecDesc() const override;
2018-10-11 02:57:48 +00:00
2018-12-19 17:20:18 +00:00
protected:
UInt32 doCompressData(const char * source, UInt32 source_size, char * dest) const override;
void doDecompressData(const char * source, UInt32 source_size, char * dest, UInt32 uncompressed_size) const override;
2018-10-11 02:57:48 +00:00
};
2019-12-15 06:34:43 +00:00
class CompressionCodecFactory;
void registerCodecNone(CompressionCodecFactory & factory);
2018-12-19 17:20:18 +00:00
}