quadrilateralcowboy/idlib/hashing/CRC32.h
Ethan Lee 69420a703a Port Linux/macOS to 64-bit, using new CMake build system.
Huge shoutout to dhewm3 and RBDOOM-3-BFG for doing 99% of this work before us!
2020-10-22 13:16:42 -04:00

20 lines
603 B
C

#ifndef __CRC32_H__
#define __CRC32_H__
/*
===============================================================================
Calculates a checksum for a block of data
using the CRC-32.
===============================================================================
*/
// 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
#endif /* !__CRC32_H__ */