AxibugEmuOnline/References/virtuanessrc097-master/Crclib.h
2024-08-05 17:58:53 +08:00

25 lines
898 B
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// CRCチェック用ライブラリクラス
//
#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 ); // 逆順
protected:
static void MakeTable();
static void MakeTableRev(); // 逆順
static BOOL m_Init;
static BOOL m_InitRev;
static DWORD m_CrcTable[ UCHAR_MAX+1 ];
static DWORD m_CrcTableRev[ UCHAR_MAX+1 ];
private:
};