1hashkit_create.pop(3) hashkit_create hashkit_create.pop(3)
2
3
4
6 hashkit_create, hashkit_clone, hashkit_free, hashkit_is_allocated -
7 Create and destroy hashkit objects
8
10 C Library for hashing algorithms (libhashkit, -lhashkit)
11
13 #include <libhashkit/hashkit.h>
14
15 hashkit_st *hashkit_create(hashkit_st *hash);
16
17 hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
18
19 void hashkit_free(hashkit_st *hash);
20
21 bool hashkit_is_allocated(const hashkit_st *hash);
22
24 The hashkit_create() function initializes a hashkit object for use. If
25 you pass a NULL argument for hash, then the memory for the object is
26 allocated. If you specify a pre-allocated piece of memory, that is
27 initialized for use.
28
29 The hashkit_clone() function initializes a hashkit object much like
30 hashkit_create(), but instead of using default settings it will use the
31 settings of the ptr hashkit object.
32
33 The hashkit_free() frees any resources being consumed by the hashkit
34 objects that were initialized with hashkit_create() or hashkit_clone().
35
36 The hashkit_is_allocated() reports where the memory was allocated for a
37 hashkit object.
38
40 hashkit_create() and hashkit_clone() will return NULL on failure or
41 non-NULL on success.
42
43 hashkit_is_allocated() returns true if the memory for the hashkit
44 object was allocated inside of hashkit_create() or hashkit_clone(),
45 otherwise it is false and was user-supplied memory.
46
48 To find out more information please check:
49 <https://launchpad.net/libmemcached>
50
52 Brian Aker, <brian@tangent.org>
53
54
55
56 2010-06-28 hashkit_create.pop(3)