Package fnv implements FNV-1 and FNV-1a, non-cryptographic hash functions created by Glenn Fowler, Landon Curt Noll, and Phong Vo. See https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function.

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.

Static methods

staticinlinebenchmarkFnv128KB(_b:Ref<B>):Void

staticinlinebenchmarkFnv128aKB(_b:Ref<B>):Void

staticinlinebenchmarkFnv32KB(_b:Ref<B>):Void

staticinlinebenchmarkFnv32aKB(_b:Ref<B>):Void

staticinlinebenchmarkFnv64KB(_b:Ref<B>):Void

staticinlinebenchmarkFnv64aKB(_b:Ref<B>):Void

staticinlinenew128():Hash

New128 returns a new 128-bit FNV-1 hash.Hash. Its Sum method will lay the value out in big-endian byte order.

staticinlinenew128a():Hash

New128a returns a new 128-bit FNV-1a hash.Hash. Its Sum method will lay the value out in big-endian byte order.

staticinlinenew32():Hash32

New32 returns a new 32-bit FNV-1 hash.Hash. Its Sum method will lay the value out in big-endian byte order.

staticinlinenew32a():Hash32

New32a returns a new 32-bit FNV-1a hash.Hash. Its Sum method will lay the value out in big-endian byte order.

staticinlinenew64():Hash64

New64 returns a new 64-bit FNV-1 hash.Hash. Its Sum method will lay the value out in big-endian byte order.

staticinlinenew64a():Hash64

New64a returns a new 64-bit FNV-1a hash.Hash. Its Sum method will lay the value out in big-endian byte order.

staticinlinetestGolden128(_t:Ref<T_>):Void

staticinlinetestGolden128a(_t:Ref<T_>):Void

staticinlinetestGolden32(_t:Ref<T_>):Void

staticinlinetestGolden32a(_t:Ref<T_>):Void

staticinlinetestGolden64(_t:Ref<T_>):Void

staticinlinetestGolden64a(_t:Ref<T_>):Void

staticinlinetestGoldenMarshal(_t:Ref<T_>):Void

staticinlinetestIntegrity128(_t:Ref<T_>):Void

staticinlinetestIntegrity128a(_t:Ref<T_>):Void

staticinlinetestIntegrity32(_t:Ref<T_>):Void

staticinlinetestIntegrity32a(_t:Ref<T_>):Void

staticinlinetestIntegrity64(_t:Ref<T_>):Void

staticinlinetestIntegrity64a(_t:Ref<T_>):Void