Files
easy7zip/CPP/7zip/Archive/Lzh/LzhCRC.h
Igor Pavlov 173c07e166 4.59 beta
2016-05-28 00:15:56 +01:00

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