blob: cd5f2e27ad7c4c425919136dc7ab947f9c2368db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<h1> Package fnv </h1> <ul id="short-nav">
<li><code>import "hash/fnv"</code></li>
<li><a href="#pkg-overview" class="overviewLink">Overview</a></li>
<li><a href="#pkg-index" class="indexLink">Index</a></li>
</ul> <h2 id="pkg-overview">Overview </h2> <p>Package fnv implements FNV-1 and FNV-1a, non-cryptographic hash functions created by Glenn Fowler, Landon Curt Noll, and Phong Vo. See <a href="https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function">https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function</a>. </p>
<p>All the hash.Hash implementations returned by this package also implement encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash. </p> <h2 id="pkg-index">Index </h2> <ul id="manual-nav">
<li><a href="#New128">func New128() hash.Hash</a></li>
<li><a href="#New128a">func New128a() hash.Hash</a></li>
<li><a href="#New32">func New32() hash.Hash32</a></li>
<li><a href="#New32a">func New32a() hash.Hash32</a></li>
<li><a href="#New64">func New64() hash.Hash64</a></li>
<li><a href="#New64a">func New64a() hash.Hash64</a></li>
</ul> <h3>Package files</h3> <p> <span>fnv.go</span> </p> <h2 id="New128">func <span>New128</span> <span title="Added in Go 1.9">1.9</span> </h2> <pre data-language="go">func New128() hash.Hash</pre> <p>New128 returns a new 128-bit FNV-1 <span>hash.Hash</span>. Its Sum method will lay the value out in big-endian byte order. </p>
<h2 id="New128a">func <span>New128a</span> <span title="Added in Go 1.9">1.9</span> </h2> <pre data-language="go">func New128a() hash.Hash</pre> <p>New128a returns a new 128-bit FNV-1a <span>hash.Hash</span>. Its Sum method will lay the value out in big-endian byte order. </p>
<h2 id="New32">func <span>New32</span> </h2> <pre data-language="go">func New32() hash.Hash32</pre> <p>New32 returns a new 32-bit FNV-1 <span>hash.Hash</span>. Its Sum method will lay the value out in big-endian byte order. </p>
<h2 id="New32a">func <span>New32a</span> </h2> <pre data-language="go">func New32a() hash.Hash32</pre> <p>New32a returns a new 32-bit FNV-1a <span>hash.Hash</span>. Its Sum method will lay the value out in big-endian byte order. </p>
<h2 id="New64">func <span>New64</span> </h2> <pre data-language="go">func New64() hash.Hash64</pre> <p>New64 returns a new 64-bit FNV-1 <span>hash.Hash</span>. Its Sum method will lay the value out in big-endian byte order. </p>
<h2 id="New64a">func <span>New64a</span> </h2> <pre data-language="go">func New64a() hash.Hash64</pre> <p>New64a returns a new 64-bit FNV-1a <span>hash.Hash</span>. Its Sum method will lay the value out in big-endian byte order. </p><div class="_attribution">
<p class="_attribution-p">
© Google, Inc.<br>Licensed under the Creative Commons Attribution License 3.0.<br>
<a href="http://golang.org/pkg/hash/fnv/" class="_attribution-link">http://golang.org/pkg/hash/fnv/</a>
</p>
</div>
|