acl  3.5.3.0
acl_hash.h
浏览该文件的文档.
1 #ifndef ACL_HASH_INCLUD_H
2 #define ACL_HASH_INCLUD_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "acl_define.h"
9 #include <stdlib.h>
10 
11 /**
12  * 哈希函数类型定义
13  * @param buf 需要被哈希的数据缓冲区地址
14  * @param len buf 的长度
15  */
16 typedef unsigned (*ACL_HASH_FN)(const void *buf, size_t len);
17 
18 ACL_API unsigned short acl_hash_crc16(const void *buf, size_t len);
19 ACL_API unsigned acl_hash_crc32(const void *buf, size_t len);
20 ACL_API acl_uint64 acl_hash_crc64(const void *buf, size_t len);
21 ACL_API unsigned acl_hash_test(const void *buf, size_t len);
22 ACL_API unsigned acl_hash_bin(const void *buf, size_t len);
23 ACL_API unsigned acl_hash_func2(const void *buf, size_t len);
24 ACL_API unsigned acl_hash_func3(const void *buf, size_t len);
25 ACL_API unsigned acl_hash_func4(const void *buf, size_t len);
26 ACL_API unsigned acl_hash_func5(const void *buf, size_t len);
27 ACL_API unsigned acl_hash_func6(const void *buf, size_t len);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif
34 
ACL_API unsigned acl_hash_func2(const void *buf, size_t len)
ACL_API unsigned acl_hash_test(const void *buf, size_t len)
ACL_API unsigned acl_hash_func3(const void *buf, size_t len)
unsigned(* ACL_HASH_FN)(const void *buf, size_t len)
Definition: acl_hash.h:16
ACL_API acl_uint64 acl_hash_crc64(const void *buf, size_t len)
ACL_API unsigned short acl_hash_crc16(const void *buf, size_t len)
ACL_API unsigned acl_hash_bin(const void *buf, size_t len)
ACL_API unsigned acl_hash_func4(const void *buf, size_t len)
ACL_API unsigned acl_hash_func6(const void *buf, size_t len)
ACL_API unsigned acl_hash_func5(const void *buf, size_t len)
ACL_API unsigned acl_hash_crc32(const void *buf, size_t len)