36 #ifndef SDL_test_crc32_h_ 37 #define SDL_test_crc32_h_ 51 #define CrcUint32 unsigned int 54 #define CrcUint8 unsigned char 57 #ifdef ORIGINAL_METHOD 58 #define CRC32_POLY 0x04c11db7 60 #define CRC32_POLY 0xEDB88320 int SDLTest_Crc32Done(SDLTest_Crc32Context *crcContext)
clean up CRC context
int SDLTest_Crc32CalcStart(SDLTest_Crc32Context *crcContext, CrcUint32 *crc32)
int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context *crcContext, CrcUint32 *crc32)
int SDLTest_Crc32Init(SDLTest_Crc32Context *crcContext)
Initialize the CRC context.
int SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context *crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32)
int SDLTest_Crc32Calc(SDLTest_Crc32Context *crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32)
calculate a crc32 from a data block