mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 12:07:07 -06:00
28 lines
397 B
C++
Executable File
28 lines
397 B
C++
Executable File
// LzhCRC.h
|
|
|
|
#ifndef __LZH_CRC_H
|
|
#define __LZH_CRC_H
|
|
|
|
#include <stddef.h>
|
|
#include "Common/Types.h"
|
|
|
|
namespace NArchive {
|
|
namespace NLzh {
|
|
|
|
class CCRC
|
|
{
|
|
UInt16 _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
|