crc32.h 496 B

123456789101112131415161718192021
  1. #ifndef __CRC32_H__
  2. #define __CRC32_H__
  3. #pragma once
  4. #include "config.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. // from zlib library
  9. TOOLKIT_API unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
  10. TOOLKIT_API unsigned long crc32_combine(unsigned long crc1, unsigned long crc2, unsigned int len2);
  11. TOOLKIT_API unsigned long crc32_combine64(unsigned long crc1, unsigned long crc2, __int64 len2);
  12. #ifdef __cplusplus
  13. } // extern "C" {
  14. #endif
  15. #endif //__CRC32_H__