package
Version:
v1.26.2
Opens a new window with list of versions in this module.
Published: May 16, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
fnvパッケージは、 Glenn Fowler、Landon Curt Noll、およびPhong Voによって作成された
FNV-1およびFNV-1aという非暗号化ハッシュ関数を実装しています。
詳細は、以下を参照してください。
https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function.
このパッケージによって返されるすべてのhash.Hashの実装も、
encoding.BinaryMarshalerとencoding.BinaryUnmarshalerを実装しています。
これにより、ハッシュの内部状態をマーシャリングおよびアンマーシャリングすることができます。
New32は新しい32ビットFNV-1 hash.Hash を返します。
そのSumメソッドは値をビッグエンディアンのバイト順で配置します。
New32aは32ビットのFNV-1a hash.Hash を新たに作成します。
そのSumメソッドは値をビッグエンディアンバイト順で表示します。
New64は新しい64ビットのFNV-1 hash.Hash を返します。
そのSumメソッドは値をビッグエンディアンのバイトオーダーで配置します。
New64a は新しい64ビットのFNV-1a hash.Hash を返します。
そのSumメソッドは値をビッグエンディアンのバイト順序で配置します。
New128は新しい128ビットのFNV-1 hash.Hash を返します。
Sumメソッドは値をビッグエンディアンのバイトオーダーで配置します。
New128aは新しい128ビットのFNV-1a hash.Hash を返します。
そのSumメソッドは値をビッグエンディアンのバイト順で配置します。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.