3 hashkit_create, hashkit_clone, hashkit_free, hashkit_is_allocated -
4 Create and destroy hashkit objects
8 C Library for hashing algorithms (libhashkit, -lhashkit)
12 #include <libhashkit/hashkit.h>
14 hashkit_st *hashkit_create(hashkit_st *hash);
16 hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
18 void hashkit_free(hashkit_st *hash);
20 bool hashkit_is_allocated(const hashkit_st *hash);
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
29 The hashkit_clone() function initializes a hashkit object much like
30 hashkit_create(), but instead of using default settings it will use
31 the settings of the ptr hashkit object.
33 The hashkit_free() frees any resources being consumed by the hashkit
34 objects that were initialized with hashkit_create() or hashkit_clone().
36 The hashkit_is_allocated() reports where the memory was allocated
41 hashkit_create() and hashkit_clone() will return NULL on failure or
44 hashkit_is_allocated() returns true if the memory for the hashkit
45 object was allocated inside of hashkit_create() or hashkit_clone(),
46 otherwise it is false and was user-supplied memory.
50 To find out more information please check:
51 L<https://launchpad.net/libmemcached>
55 Brian Aker, E<lt>brian@tangent.orgE<gt>