crc32.h 522 B

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