view src/win32/7zip/7z/CPP/7zip/Archive/Lzh/LzhCRC.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line source
1 // LzhCRC.h
3 #ifndef __LZH_CRC_H
4 #define __LZH_CRC_H
6 #include <stddef.h>
7 #include "Common/Types.h"
9 namespace NArchive {
10 namespace NLzh {
12 class CCRC
13 {
14 UInt16 _value;
15 public:
16 static UInt16 Table[256];
17 static void InitTable();
19 CCRC(): _value(0){};
20 void Init() { _value = 0; }
21 void Update(const void *data, size_t size);
22 UInt16 GetDigest() const { return _value; }
23 };
25 }}
27 #endif