C# Class Demo.Library.Algorithms.Cardinality.Hash.Fnv1A

Helper class to computes the 64-bit FNV-1a hash of byte arrays, GetHashCode
Inheritance: IHashFunction
Datei anzeigen Open project: volak/DDD.Enterprise.Example

Public Methods

Method Description
GetHashCode ( byte bytes ) : ulong

Computes the 64-bit FNV-1a hash of the given bytes, see http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function and http://www.isthe.com/chongo/src/fnv/hash_64a.c

Method Details

GetHashCode() public method

Computes the 64-bit FNV-1a hash of the given bytes, see http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function and http://www.isthe.com/chongo/src/fnv/hash_64a.c
public GetHashCode ( byte bytes ) : ulong
bytes byte Text to compute the hash for
return ulong