25 lines
441 B
C
25 lines
441 B
C
|
//
|
|||
|
// CRC<52>`<60>F<EFBFBD>b<EFBFBD>N<EFBFBD>p<EFBFBD><70><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>X
|
|||
|
//
|
|||
|
#define WIN32_LEAN_AND_MEAN
|
|||
|
#include <windows.h>
|
|||
|
#include <limits.h>
|
|||
|
|
|||
|
class CRC
|
|||
|
{
|
|||
|
public:
|
|||
|
static DWORD Crc( INT size, LPBYTE c );
|
|||
|
static DWORD CrcRev( INT size, LPBYTE c ); // <20>t<EFBFBD><74>
|
|||
|
|
|||
|
protected:
|
|||
|
static void MakeTable();
|
|||
|
static void MakeTableRev(); // <20>t<EFBFBD><74>
|
|||
|
|
|||
|
static BOOL m_Init;
|
|||
|
static BOOL m_InitRev;
|
|||
|
static DWORD m_CrcTable[ UCHAR_MAX+1 ];
|
|||
|
static DWORD m_CrcTableRev[ UCHAR_MAX+1 ];
|
|||
|
private:
|
|||
|
};
|
|||
|
|