server/game/src/crc32.h

14 lines
347 B
C
Raw Normal View History

2022-03-05 12:44:06 +02:00
#ifndef __INC_CRC32_H__
#define __INC_CRC32_H__
typedef unsigned long crc_t;
crc_t GetCRC32(const char * buffer, size_t count);
crc_t GetCaseCRC32(const char * buffer, size_t count);
crc_t GetFastHash(const char * key, size_t len);
/*#define CRC32(buf) GetCRC32(buf, strlen(buf))
#define CRC32CASE(buf) GetCaseCRC32(buf, strlen(buf))*/
#endif