doom3-bfg/neo/idlib/hashing/CRC32.h

21 lines
603 B
C
Raw Normal View History

2012-11-26 18:58:24 +00:00
#ifndef __CRC32_H__
#define __CRC32_H__
/*
===============================================================================
Calculates a checksum for a block of data
using the CRC-32.
===============================================================================
*/
2012-12-12 11:11:55 +00:00
// RB: 64 bit fixes, changed long to int
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 );
// RB end
2012-11-26 18:58:24 +00:00
#endif /* !__CRC32_H__ */