1
.TH "HASHKIT_CLONE" "3" "September 16, 2012" "1.0.10" "libmemcached"
3
hashkit_clone \- libhashkit Documentation
5
.nr rst2man-indent-level 0
9
level \\n[rst2man-indent-level]
10
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17
.\" .rstReportMargin pre:
19
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
. nr rst2man-indent-level +1
21
.\" .rstReportMargin post:
25
.\" indent \\n[an-margin]
26
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
.nr rst2man-indent-level -1
28
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31
.\" Man page generated from reStructeredText.
35
#include <libhashkit/hashkit.h>
42
.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP)
46
.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP)
50
.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP)
54
.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP)
57
Compile and link with \-lhashkit
60
The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If
61
you pass a NULL argument for hash, then the memory for the object is
62
allocated. If you specify a pre\-allocated piece of memory, that is
65
The \fI\%hashkit_clone()\fP function initializes a hashkit object much like
66
\fI\%hashkit_create()\fP, but instead of using default settings it will use
67
the settings of the ptr hashkit object.
69
The \fI\%hashkit_free()\fP frees any resources being consumed by the hashkit
70
objects that were initialized with \fI\%hashkit_create()\fP or \fI\%hashkit_clone()\fP.
72
The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated
76
\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on
77
failure or non\-NULL on success.
79
\fI\%hashkit_is_allocated()\fP returns true if the memory for the hashkit
80
object was allocated inside of \fI\%hashkit_create()\fP or
81
\fI\%hashkit_clone()\fP, otherwise it is false and was user\-supplied memory.
84
To find out more information please check:
85
\fI\%http://libmemcached.org/\fP
88
\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP
92
2011-2012, Brian Aker DataDifferential, http://datadifferential.com/
93
.\" Generated by docutils manpage writer.