~dave-terei/libmemcached/sasl-fixes

« back to all changes in this revision

Viewing changes to docs/man/hashkit_create.3

Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "HASHKIT_CREATE" "3" "January 26, 2012" "1.0.4" "libmemcached"
 
1
.TH "HASHKIT_CREATE" "3" "March 14, 2012" "1.0.5" "libmemcached"
2
2
.SH NAME
3
3
hashkit_create \- libhashkit Documentation
4
4
.
39
39
.UNINDENT
40
40
.INDENT 0.0
41
41
.TP
42
 
.B hashkit_st *hashkit_create(hashkit_st *hash);
43
 
.UNINDENT
44
 
.INDENT 0.0
45
 
.TP
46
 
.B hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
47
 
.UNINDENT
48
 
.INDENT 0.0
49
 
.TP
50
 
.B void hashkit_free(hashkit_st *hash);
51
 
.UNINDENT
52
 
.INDENT 0.0
53
 
.TP
54
 
.B bool hashkit_is_allocated(const hashkit_st *hash);
 
42
.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP)
 
43
.UNINDENT
 
44
.INDENT 0.0
 
45
.TP
 
46
.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP)
 
47
.UNINDENT
 
48
.INDENT 0.0
 
49
.TP
 
50
.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP)
 
51
.UNINDENT
 
52
.INDENT 0.0
 
53
.TP
 
54
.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP)
55
55
.UNINDENT
56
56
.sp
57
57
Compile and link with \-lhashkit
58
58
.SH DESCRIPTION
59
59
.sp
60
 
The \fBhashkit_create()\fP function initializes a hashkit object for use. If
 
60
The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If
61
61
you pass a NULL argument for hash, then the memory for the object is
62
62
allocated. If you specify a pre\-allocated piece of memory, that is
63
63
initialized for use.
64
64
.sp
65
 
The \fBhashkit_clone()\fP function initializes a hashkit object much like
66
 
\fBhashkit_create()\fP, but instead of using default settings it will use
 
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
67
the settings of the ptr hashkit object.
68
68
.sp
69
 
The \fBhashkit_free()\fP frees any resources being consumed by the hashkit
70
 
objects that were initialized with \fBhashkit_create()\fP or \fBhashkit_clone()\fP.
 
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.
71
71
.sp
72
 
The \fBhashkit_is_allocated()\fP reports where the memory was allocated
 
72
The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated
73
73
for a hashkit object.
74
74
.SH RETURN VALUE
75
75
.sp
76
 
\fBhashkit_create()\fP and \fBhashkit_clone()\fP will return NULL on
 
76
\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on
77
77
failure or non\-NULL on success.
78
78
.sp
79
 
\fBhashkit_is_allocated()\fP returns true if the memory for the hashkit
80
 
object was allocated inside of \fBhashkit_create()\fP or
81
 
\fBhashkit_clone()\fP, otherwise it is false and was user\-supplied memory.
 
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.
82
82
.SH HOME
83
83
.sp
84
84
To find out more information please check: