mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-22 20:51:40 +00:00
19 lines
556 B
C
19 lines
556 B
C
|
#ifndef __CRC32_H__
|
||
|
#define __CRC32_H__
|
||
|
|
||
|
/*
|
||
|
===============================================================================
|
||
|
|
||
|
Calculates a checksum for a block of data
|
||
|
using the CRC-32.
|
||
|
|
||
|
===============================================================================
|
||
|
*/
|
||
|
|
||
|
void CRC32_InitChecksum( unsigned long &crcvalue );
|
||
|
void CRC32_UpdateChecksum( unsigned long &crcvalue, const void *data, int length );
|
||
|
void CRC32_FinishChecksum( unsigned long &crcvalue );
|
||
|
unsigned long CRC32_BlockChecksum( const void *data, int length );
|
||
|
|
||
|
#endif /* !__CRC32_H__ */
|