lzhcrc.h

来自「压缩软件源码」· C头文件 代码 · 共 28 行

H
28
字号
// LzhCRC.h

#ifndef __LZH_CRC_H
#define __LZH_CRC_H

#include <stddef.h>
#include "Common/Types.h"

namespace NArchive {
namespace NLzh {

class CCRC
{
  UInt32 _value;
public:
	static UInt16 Table[256];
	static void InitTable();

  CCRC():  _value(0){};
  void Init() { _value = 0; }
  void Update(const void *data, size_t size);
  UInt16 GetDigest() const { return _value; } 
};

}}

#endif

⌨️ 快捷键说明

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