mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-13 16:35:35 +08:00
35 lines
992 B
C
35 lines
992 B
C
#ifndef ACL_HASH_INCLUD_H
|
|
#define ACL_HASH_INCLUD_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "acl_define.h"
|
|
#include <stdlib.h>
|
|
|
|
/**
|
|
* 哈希函数类型定义
|
|
* @param buf 需要被哈希的数据缓冲区地址
|
|
* @param len buf 的长度
|
|
*/
|
|
typedef unsigned (*ACL_HASH_FN)(const void *buf, size_t len);
|
|
|
|
ACL_API unsigned short acl_hash_crc16(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_crc32(const void *buf, size_t len);
|
|
ACL_API acl_uint64 acl_hash_crc64(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_test(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_bin(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_func2(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_func3(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_func4(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_func5(const void *buf, size_t len);
|
|
ACL_API unsigned acl_hash_func6(const void *buf, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|