1HASHKIT_VALUE(3) libmemcached-awesome HASHKIT_VALUE(3)
2
3
4
6 hashkit_value - libhashkit Documentation
7
9 #include <libhashkit-1.0/hashkit.h>
10 Compile and link with -lhashkit
11
12 uint32_t hashkit_value(hashkit_st *hash, const char *key, size_t
13 key_length)
14
15 Parameters
16
17 • hash -- pointer to an initialized hashkit_st struct
18
19 • key -- the key to genereate a hash of
20
21 • key_length -- the length of the key without any termi‐
22 nating zero byte
23
25 The hashkit_value() function generates a 32-bit hash value from the
26 given key and key_length. The hash argument is an initialized hashkit
27 object, and distribution type and hash function is used from this ob‐
28 ject while generating the value.
29
31 A 32-bit hash value.
32
34 libhashkit(3) hashkit_create(3) hashkit_function(3) hashkit_func‐
35 tions(3)
36
37
38
39
401.1 Nov 09, 2022 HASHKIT_VALUE(3)