CRC32.h 556 B

12345678910111213141516171819
  1. #ifndef __CRC32_H__
  2. #define __CRC32_H__
  3. /*
  4. ===============================================================================
  5. Calculates a checksum for a block of data
  6. using the CRC-32.
  7. ===============================================================================
  8. */
  9. void CRC32_InitChecksum( unsigned long &crcvalue );
  10. void CRC32_UpdateChecksum( unsigned long &crcvalue, const void *data, int length );
  11. void CRC32_FinishChecksum( unsigned long &crcvalue );
  12. unsigned long CRC32_BlockChecksum( const void *data, int length );
  13. #endif /* !__CRC32_H__ */