AxibugEmuOnline/References/VirtuaNESex_src_191105/Crclib.h

25 lines
441 B
C
Raw Permalink Normal View History

2024-08-05 17:58:53 +08:00
//
// 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:
};