quake4-sdk/source/idlib/hashing/CRC8.h

20 lines
549 B
C
Raw Permalink Normal View History

2007-06-15 00:00:00 +00:00
#ifndef __CRC8_H__
#define __CRC8_H__
/*
===============================================================================
Calculates a checksum for a block of data
using the CRC-8.
===============================================================================
*/
void CRC8_InitChecksum( unsigned char &crcvalue );
void CRC8_UpdateChecksum( unsigned char &crcvalue, const void *data, int length );
void CRC8_FinishChecksum( unsigned char &crcvalue );
unsigned char CRC8_BlockChecksum( const void *data, int length );
#endif /* !__CRC8_H__ */