9
hashkit_create, hashkit_clone, hashkit_free, hashkit_is_allocated -
10
Create and destroy hashkit objects
18
C Library for hashing algorithms (libhashkit, -lhashkit)
29
#include <libhashkit/hashkit.h>
31
hashkit_st *hashkit_create(hashkit_st *hash);
33
hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
35
void hashkit_free(hashkit_st *hash);
37
bool hashkit_is_allocated(const hashkit_st *hash);
46
The hashkit_create() function initializes a hashkit object for use. If
47
you pass a NULL argument for hash, then the memory for the object is
48
allocated. If you specify a pre-allocated piece of memory, that is
51
The hashkit_clone() function initializes a hashkit object much like
52
hashkit_create(), but instead of using default settings it will use
53
the settings of the ptr hashkit object.
55
The hashkit_free() frees any resources being consumed by the hashkit
56
objects that were initialized with hashkit_create() or hashkit_clone().
58
The hashkit_is_allocated() reports where the memory was allocated
67
hashkit_create() and hashkit_clone() will return NULL on failure or
70
hashkit_is_allocated() returns true if the memory for the hashkit
71
object was allocated inside of hashkit_create() or hashkit_clone(),
72
otherwise it is false and was user-supplied memory.
80
To find out more information please check:
81
`https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
89
Brian Aker, <brian@tangent.org>