zle.hpp

来自「Octane v1.01.20 The Open Compression To」· HPP 代码 · 共 39 行

HPP
39
字号
/// @file zle.hpp
/// Zero length encoding
///
/// @remarks
/// Loco's first attempt to make a compressor for octane
///
/// @author loco
/// @date   2003.08.13
///
///

#ifndef zleH
#define zleH

#include "../compressor.hpp"

/// This is a zero-length-encoder, it performs run-length-encoding for 0 bytes only.
/// Any contiguous string of 0 bytes up to 255 characters long will be replaced by a 0 byte followed by counter signifying the length of the string of 0s.
///
/// @ingroup Compressors
///
class zleCompressor : public OctaneCompressor
{
public:
	zleCompressor(bool registerme = false);
	~zleCompressor() {;};

	virtual std::string GetClassName() {return "zle";}
	virtual std::string GetDescription() {return "Zero length encoding";}

	virtual OctaneCompressor *MakeCompressorInstantiation() {return new zleCompressor();};

protected:
	virtual bool DoProtectedCompress(bitreader &s, bitwriter &d);
	virtual bool DoProtectedDecompress(bitreader &s, bitwriter &d);
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?