PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/ghost/crc32.h

http://ghostcb.googlecode.com/
C++ Header | 18 lines | 14 code | 4 blank | 0 comment | 0 complexity | 691a61568f2306201cdb506adc4db48f MD5 | raw file
 1#ifndef CRC32_H
 2#define CRC32_H
 3
 4#define CRC32_POLYNOMIAL 0x04c11db7
 5
 6class CCRC32
 7{
 8public:
 9	void Initialize( );
10	uint32_t FullCRC( unsigned char *sData, uint32_t ulLength );
11	void PartialCRC( uint32_t *ulInCRC, unsigned char *sData, uint32_t ulLength );
12
13private:
14	uint32_t Reflect( uint32_t ulReflect, char cChar );
15	uint32_t ulTable[256];
16};
17
18#endif