AxibugEmuOnline/virtuanessrc097-master/Crclib.h

25 lines
898 B
C
Raw Normal View History

<EFBFBD><EFBFBD>//
// CRC<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0(u<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
//
#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 ); // <EFBFBD><EFBFBD>
protected:
static void MakeTable();
static void MakeTableRev(); // <EFBFBD><EFBFBD>
static BOOL m_Init;
static BOOL m_InitRev;
static DWORD m_CrcTable[ UCHAR_MAX+1 ];
static DWORD m_CrcTableRev[ UCHAR_MAX+1 ];
private:
};