SDL
2.0
|
Go to the source code of this file.
Functions | |
int | SDLTest_Crc32Init (SDLTest_Crc32Context *crcContext) |
Initialize the CRC context. More... | |
int | SDLTest_Crc32Calc (SDLTest_Crc32Context *crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32) |
calculate a crc32 from a data block More... | |
int | SDLTest_Crc32CalcStart (SDLTest_Crc32Context *crcContext, CrcUint32 *crc32) |
int | SDLTest_Crc32CalcEnd (SDLTest_Crc32Context *crcContext, CrcUint32 *crc32) |
int | SDLTest_Crc32CalcBuffer (SDLTest_Crc32Context *crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32) |
int | SDLTest_Crc32Done (SDLTest_Crc32Context *crcContext) |
clean up CRC context More... | |
int SDLTest_Crc32Calc | ( | SDLTest_Crc32Context * | crcContext, |
CrcUint8 * | inBuf, | ||
CrcUint32 | inLen, | ||
CrcUint32 * | crc32 | ||
) |
calculate a crc32 from a data block
crcContext | pointer to context variable |
inBuf | input buffer to checksum |
inLen | length of input buffer |
crc32 | pointer to Uint32 to store the final CRC into |
Definition at line 72 of file SDL_test_crc32.c.
References SDLTest_Crc32CalcBuffer(), SDLTest_Crc32CalcEnd(), and SDLTest_Crc32CalcStart().
Referenced by get_allocation_bucket().
int SDLTest_Crc32CalcBuffer | ( | SDLTest_Crc32Context * | crcContext, |
CrcUint8 * | inBuf, | ||
CrcUint32 | inLen, | ||
CrcUint32 * | crc32 | ||
) |
Definition at line 127 of file SDL_test_crc32.c.
References SDLTest_Crc32Context::crc32_table, CrcUint32, CrcUint8, and NULL.
Referenced by SDLTest_Crc32Calc().
int SDLTest_Crc32CalcEnd | ( | SDLTest_Crc32Context * | crcContext, |
CrcUint32 * | crc32 | ||
) |
Definition at line 109 of file SDL_test_crc32.c.
References NULL.
Referenced by SDLTest_Crc32Calc().
int SDLTest_Crc32CalcStart | ( | SDLTest_Crc32Context * | crcContext, |
CrcUint32 * | crc32 | ||
) |
int SDLTest_Crc32Done | ( | SDLTest_Crc32Context * | crcContext | ) |
clean up CRC context
crcContext | pointer to context variable |
Definition at line 157 of file SDL_test_crc32.c.
References NULL.
int SDLTest_Crc32Init | ( | SDLTest_Crc32Context * | crcContext | ) |
Initialize the CRC context.
Note: The function initializes the crc table required for all crc calculations.
crcContext | pointer to context variable |
Definition at line 34 of file SDL_test_crc32.c.
References CRC32_POLY, SDLTest_Crc32Context::crc32_table, CrcUint32, i, j, and NULL.
Referenced by SDLTest_TrackAllocations().