dhewm3-sdk/idlib/hashing/CRC32.h

19 lines
552 B
C
Raw Normal View History

2011-11-22 21:28:15 +00:00
#ifndef __CRC32_H__
#define __CRC32_H__
/*
===============================================================================
Calculates a checksum for a block of data
using the CRC-32.
===============================================================================
*/
2011-12-10 17:48:09 +00:00
void CRC32_InitChecksum( unsigned int &crcvalue );
void CRC32_UpdateChecksum( unsigned int &crcvalue, const void *data, int length );
void CRC32_FinishChecksum( unsigned int &crcvalue );
unsigned int CRC32_BlockChecksum( const void *data, int length );
2011-11-22 21:28:15 +00:00
#endif /* !__CRC32_H__ */