|
World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
| struct | SDLTest_Crc32Context |
Функции | |
| int | SDLTest_Crc32Init (SDLTest_Crc32Context *crcContext) |
| Initialize the CRC context. Подробнее... | |
| int | SDLTest_Crc32Calc (SDLTest_Crc32Context *crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32) |
| calculate a crc32 from a data block Подробнее... | |
| 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 Подробнее... | |
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
См. определение в файле SDL_test_crc32.h
| 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 |
| 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 |
| 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
| crcContext | pointer to context variable |