<!DOCTYPE html>
-<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
-<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
+<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8">
+ <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
+
+
- <script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
+ <!--[if lt IE 9]>
+ <script src="../_static/js/html5shiv.min.js"></script>
+ <![endif]-->
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script type="text/javascript" src="../_static/js/theme.js"></script>
-
-
- <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="copyright" title="Copyright" href="../copyright.html" />
- <a href="../index.html" class="icon icon-home"> libmemcached
+ <a href="../index.html" class="icon icon-home" alt="Documentation Home"> libmemcached
</div>
+
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
</div>
+
</div>
</nav>
<ul class="wy-breadcrumbs">
- <li><a href="../index.html">Docs</a> »</li>
+ <li><a href="../index.html" class="icon icon-home"></a> »</li>
<li><a href="index.html">libhashkit API</a> »</li>
<div class="section" id="available-hashes">
<h1>Available Hashes<a class="headerlink" href="#available-hashes" title="Permalink to this headline">¶</a></h1>
-<p id="index-0">Various hash functions to use for calculating hash values for keys</p>
<div class="section" id="synopsis">
<h2>SYNOPSIS<a class="headerlink" href="#synopsis" title="Permalink to this headline">¶</a></h2>
<dl class="simple">
<dt>#include <libhashkit-1.0/hashkit.h></dt><dd><p>Compile and link with -lhashkit</p>
</dd>
</dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv415hashkit_defaultPKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv415hashkit_fnv1_64PKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv416hashkit_fnv1a_64PKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv415hashkit_fnv1_32PKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv416hashkit_fnv1a_32PKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv413hashkit_crc32PKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv413hashkit_hsiehPKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv414hashkit_murmurPKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv415hashkit_murmur3PKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv415hashkit_jenkinsPKc6size_t">
<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>
<dd></dd></dl>
-<dl class="function">
+<dl class="cpp function">
<dt id="_CPPv411hashkit_md5PKc6size_t">
<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>
<dd></dd></dl>
<div class="section" id="description">
<h2>DESCRIPTION<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
<p>These functions generate hash values from a key using a variety of
-algorithms. These functions can be used standalone, or as arguments
-to <code class="xref cpp cpp-func docutils literal notranslate"><span class="pre">hashkit_set_hash_fn()</span></code> or <code class="xref cpp cpp-func docutils literal notranslate"><span class="pre">hashkit_set_continuum_hash_fn()</span></code>.</p>
-<p>The <a class="reference internal" href="#_CPPv413hashkit_hsiehPKc6size_t" title="hashkit_hsieh"><code class="xref cpp cpp-func docutils literal notranslate"><span class="pre">hashkit_hsieh()</span></code></a> is only available if the library is built with
-the appropriate flag enabled.</p>
+algorithms. These functions can be used standalone, or will be used
+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>
+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>
+<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
+only available if the library is built with the appropriate flag enabled.</p>
</div>
<div class="section" id="return-value">
<h2>RETURN VALUE<a class="headerlink" href="#return-value" title="Permalink to this headline">¶</a></h2>
<div role="contentinfo">
<p>
+
+
© <a href="../copyright.html">Copyright</a>
</p>
</div>
- Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
+
+
+
+ Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a
+
+ <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a>
+
+ provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
-
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);