4 <html class=
"writer-html5" lang=
"en" >
8 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
10 <title>Available Hashes
— libmemcached
1.0.99 documentation
</title>
14 <link rel=
"stylesheet" href=
"../_static/css/theme.css" type=
"text/css" />
15 <link rel=
"stylesheet" href=
"../_static/pygments.css" type=
"text/css" />
24 <script src="../_static/js/html5shiv.min.js"></script>
28 <script type=
"text/javascript" id=
"documentation_options" data-url_root=
"../" src=
"../_static/documentation_options.js"></script>
29 <script src=
"../_static/jquery.js"></script>
30 <script src=
"../_static/underscore.js"></script>
31 <script src=
"../_static/doctools.js"></script>
32 <script src=
"../_static/language_data.js"></script>
34 <script type=
"text/javascript" src=
"../_static/js/theme.js"></script>
37 <link rel=
"index" title=
"Index" href=
"../genindex.html" />
38 <link rel=
"search" title=
"Search" href=
"../search.html" />
39 <link rel=
"copyright" title=
"Copyright" href=
"../copyright.html" />
40 <link rel=
"next" title=
"Generate hash value" href=
"hashkit_value.html" />
41 <link rel=
"prev" title=
"Set Hash Function" href=
"hashkit_function.html" />
44 <body class=
"wy-body-for-nav">
47 <div class=
"wy-grid-for-nav">
49 <nav data-toggle=
"wy-nav-shift" class=
"wy-nav-side">
50 <div class=
"wy-side-scroll">
51 <div class=
"wy-side-nav-search" >
55 <a href=
"../index.html" class=
"icon icon-home" alt=
"Documentation Home"> libmemcached
72 <form id=
"rtd-search-form" class=
"wy-form" action=
"../search.html" method=
"get">
73 <input type=
"text" name=
"q" placeholder=
"Search docs" />
74 <input type=
"hidden" name=
"check_keywords" value=
"yes" />
75 <input type=
"hidden" name=
"area" value=
"default" />
83 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
90 <p class=
"caption"><span class=
"caption-text">libmemcached
</span></p>
92 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached.html">Introduction
</a></li>
93 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached/index.html">libmemcached API
</a></li>
94 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached/index_misc.html">Misc
</a></li>
96 <p class=
"caption"><span class=
"caption-text">libmemcachedutil
</span></p>
98 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcachedutil.html">Introduction
</a></li>
99 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcachedutil/index.html">libmemcachedutil API
</a></li>
101 <p class=
"caption"><span class=
"caption-text">libhashkit
</span></p>
103 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libhashkit.html">Introduction
</a></li>
104 <li class=
"toctree-l1 current"><a class=
"reference internal" href=
"index.html">libhashkit API
</a><ul class=
"current">
105 <li class=
"toctree-l2"><a class=
"reference internal" href=
"hashkit_create.html">Creating a hashkit structure
</a></li>
106 <li class=
"toctree-l2"><a class=
"reference internal" href=
"hashkit_function.html">Set Hash Function
</a></li>
107 <li class=
"toctree-l2 current"><a class=
"current reference internal" href=
"#">Available Hashes
</a></li>
108 <li class=
"toctree-l2"><a class=
"reference internal" href=
"hashkit_value.html">Generate hash value
</a></li>
112 <p class=
"caption"><span class=
"caption-text">Client Applications
</span></p>
114 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../bin/index.html">Client Applications
</a></li>
116 <p class=
"caption"><span class=
"caption-text">Copyright
</span></p>
118 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../copyright.html">Copyright
</a></li>
128 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
131 <nav class=
"wy-nav-top" aria-label=
"top navigation">
133 <i data-toggle=
"wy-nav-top" class=
"fa fa-bars"></i>
134 <a href=
"../index.html">libmemcached
</a>
139 <div class=
"wy-nav-content">
141 <div class=
"rst-content">
159 <div role=
"navigation" aria-label=
"breadcrumbs navigation">
161 <ul class=
"wy-breadcrumbs">
163 <li><a href=
"../index.html" class=
"icon icon-home"></a> »</li>
165 <li><a href=
"index.html">libhashkit API
</a> »</li>
167 <li>Available Hashes
</li>
170 <li class=
"wy-breadcrumbs-aside">
181 <div role=
"main" class=
"document" itemscope=
"itemscope" itemtype=
"http://schema.org/Article">
182 <div itemprop=
"articleBody">
184 <div class=
"section" id=
"available-hashes">
185 <h1>Available Hashes
<a class=
"headerlink" href=
"#available-hashes" title=
"Permalink to this headline">¶
</a></h1>
186 <div class=
"section" id=
"synopsis">
187 <h2>SYNOPSIS
<a class=
"headerlink" href=
"#synopsis" title=
"Permalink to this headline">¶
</a></h2>
189 <dt>#include
<libhashkit-
1.0/hashkit.h
></dt><dd><p>Compile and link with -lhashkit
</p>
192 <dl class=
"cpp function">
193 <dt id=
"_CPPv415hashkit_defaultPKc6size_t">
194 <span id=
"_CPPv315hashkit_defaultPKc6size_t"></span><span id=
"_CPPv215hashkit_defaultPKc6size_t"></span><span id=
"hashkit_default__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_default
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv415hashkit_defaultPKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
197 <dl class=
"cpp function">
198 <dt id=
"_CPPv415hashkit_fnv1_64PKc6size_t">
199 <span id=
"_CPPv315hashkit_fnv1_64PKc6size_t"></span><span id=
"_CPPv215hashkit_fnv1_64PKc6size_t"></span><span id=
"hashkit_fnv1_64__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_fnv1_64
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv415hashkit_fnv1_64PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
202 <dl class=
"cpp function">
203 <dt id=
"_CPPv416hashkit_fnv1a_64PKc6size_t">
204 <span id=
"_CPPv316hashkit_fnv1a_64PKc6size_t"></span><span id=
"_CPPv216hashkit_fnv1a_64PKc6size_t"></span><span id=
"hashkit_fnv1a_64__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_fnv1a_64
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv416hashkit_fnv1a_64PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
207 <dl class=
"cpp function">
208 <dt id=
"_CPPv415hashkit_fnv1_32PKc6size_t">
209 <span id=
"_CPPv315hashkit_fnv1_32PKc6size_t"></span><span id=
"_CPPv215hashkit_fnv1_32PKc6size_t"></span><span id=
"hashkit_fnv1_32__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_fnv1_32
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv415hashkit_fnv1_32PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
212 <dl class=
"cpp function">
213 <dt id=
"_CPPv416hashkit_fnv1a_32PKc6size_t">
214 <span id=
"_CPPv316hashkit_fnv1a_32PKc6size_t"></span><span id=
"_CPPv216hashkit_fnv1a_32PKc6size_t"></span><span id=
"hashkit_fnv1a_32__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_fnv1a_32
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv416hashkit_fnv1a_32PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
217 <dl class=
"cpp function">
218 <dt id=
"_CPPv413hashkit_crc32PKc6size_t">
219 <span id=
"_CPPv313hashkit_crc32PKc6size_t"></span><span id=
"_CPPv213hashkit_crc32PKc6size_t"></span><span id=
"hashkit_crc32__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_crc32
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv413hashkit_crc32PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
222 <dl class=
"cpp function">
223 <dt id=
"_CPPv413hashkit_hsiehPKc6size_t">
224 <span id=
"_CPPv313hashkit_hsiehPKc6size_t"></span><span id=
"_CPPv213hashkit_hsiehPKc6size_t"></span><span id=
"hashkit_hsieh__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_hsieh
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv413hashkit_hsiehPKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
227 <dl class=
"cpp function">
228 <dt id=
"_CPPv414hashkit_murmurPKc6size_t">
229 <span id=
"_CPPv314hashkit_murmurPKc6size_t"></span><span id=
"_CPPv214hashkit_murmurPKc6size_t"></span><span id=
"hashkit_murmur__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_murmur
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv414hashkit_murmurPKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
232 <dl class=
"cpp function">
233 <dt id=
"_CPPv415hashkit_murmur3PKc6size_t">
234 <span id=
"_CPPv315hashkit_murmur3PKc6size_t"></span><span id=
"_CPPv215hashkit_murmur3PKc6size_t"></span><span id=
"hashkit_murmur3__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_murmur3
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv415hashkit_murmur3PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
237 <dl class=
"cpp function">
238 <dt id=
"_CPPv415hashkit_jenkinsPKc6size_t">
239 <span id=
"_CPPv315hashkit_jenkinsPKc6size_t"></span><span id=
"_CPPv215hashkit_jenkinsPKc6size_t"></span><span id=
"hashkit_jenkins__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_jenkins
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv415hashkit_jenkinsPKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
242 <dl class=
"cpp function">
243 <dt id=
"_CPPv411hashkit_md5PKc6size_t">
244 <span id=
"_CPPv311hashkit_md5PKc6size_t"></span><span id=
"_CPPv211hashkit_md5PKc6size_t"></span><span id=
"hashkit_md5__cCP.s"></span>uint32_t
<code class=
"sig-name descname">hashkit_md5
</code><span class=
"sig-paren">(
</span><em class=
"property">const
</em> char *
<em>key
</em>, size_t
<em>key_length
</em><span class=
"sig-paren">)
</span><a class=
"headerlink" href=
"#_CPPv411hashkit_md5PKc6size_t" title=
"Permalink to this definition">¶
</a><br /></dt>
248 <div class=
"section" id=
"description">
249 <h2>DESCRIPTION
<a class=
"headerlink" href=
"#description" title=
"Permalink to this headline">¶
</a></h2>
250 <p>These functions generate hash values from a key using a variety of
251 algorithms. These functions can be used standalone, or will be used
252 according to the algorithm set with
<a class=
"reference internal" href=
"hashkit_function.html#_CPPv420hashkit_set_functionP10hashkit_st24hashkit_hash_algorithm_t" title=
"hashkit_set_function"><code class=
"xref cpp cpp-any docutils literal notranslate"><span class=
"pre">hashkit_set_function()
</span></code></a>
253 or
<a class=
"reference internal" href=
"hashkit_function.html#_CPPv433hashkit_set_distribution_functionP10hashkit_st24hashkit_hash_algorithm_t" title=
"hashkit_set_distribution_function"><code class=
"xref cpp cpp-any docutils literal notranslate"><span class=
"pre">hashkit_set_distribution_function()
</span></code></a>.
</p>
254 <p>The
<a class=
"reference internal" href=
"#_CPPv413hashkit_hsiehPKc6size_t" title=
"hashkit_hsieh"><code class=
"xref cpp cpp-any docutils literal notranslate"><span class=
"pre">hashkit_hsieh()
</span></code></a>,
<a class=
"reference internal" href=
"#_CPPv414hashkit_murmurPKc6size_t" title=
"hashkit_murmur"><code class=
"xref cpp cpp-any docutils literal notranslate"><span class=
"pre">hashkit_murmur()
</span></code></a> and
<a class=
"reference internal" href=
"#_CPPv415hashkit_murmur3PKc6size_t" title=
"hashkit_murmur3"><code class=
"xref cpp cpp-any docutils literal notranslate"><span class=
"pre">hashkit_murmur3()
</span></code></a> functions are
255 only available if the library is built with the appropriate flag enabled.
</p>
257 <div class=
"section" id=
"return-value">
258 <h2>RETURN VALUE
<a class=
"headerlink" href=
"#return-value" title=
"Permalink to this headline">¶
</a></h2>
259 <p>A
32-bit hash value.
</p>
261 <div class=
"section" id=
"see-also">
262 <h2>SEE ALSO
<a class=
"headerlink" href=
"#see-also" title=
"Permalink to this headline">¶
</a></h2>
264 <li><p><a class=
"reference internal" href=
"../libhashkit.html"><span class=
"doc">libhashkit - C/C++ hashing library
</span></a></p></li>
265 <li><p><a class=
"reference internal" href=
"hashkit_create.html"><span class=
"doc">Creating a hashkit structure
</span></a></p></li>
266 <li><p><a class=
"reference internal" href=
"hashkit_function.html"><span class=
"doc">Set Hash Function
</span></a></p></li>
277 <div class=
"rst-footer-buttons" role=
"navigation" aria-label=
"footer navigation">
279 <a href=
"hashkit_value.html" class=
"btn btn-neutral float-right" title=
"Generate hash value" accesskey=
"n" rel=
"next">Next
<span class=
"fa fa-arrow-circle-right"></span></a>
282 <a href=
"hashkit_function.html" class=
"btn btn-neutral float-left" title=
"Set Hash Function" accesskey=
"p" rel=
"prev"><span class=
"fa fa-arrow-circle-left"></span> Previous
</a>
289 <div role=
"contentinfo">
293 © <a href=
"../copyright.html">Copyright
</a>
300 Built with
<a href=
"http://sphinx-doc.org/">Sphinx
</a> using a
302 <a href=
"https://github.com/rtfd/sphinx_rtd_theme">theme
</a>
304 provided by
<a href=
"https://readthedocs.org">Read the Docs
</a>.
316 <script type=
"text/javascript">
318 SphinxRtdTheme.Navigation.enable(true);