mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
28 lines
650 B
C++
28 lines
650 B
C++
#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:
|
|
uint8_t getMethodByte() const override;
|
|
|
|
String getCodecDesc() const override;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
class CompressionCodecFactory;
|
|
void registerCodecNone(CompressionCodecFactory & factory);
|
|
}
|