예제 #1
0
 /// <summary>
 /// Computes a 64-bit hash of the specified bytes.
 /// </summary>
 /// <param name="dataToHash">The data to hash.</param>
 /// <returns>The 64-bit hash value.</returns>
 public static ulong MurmurHash64(byte[] dataToHash)
 {
     return(MurmurHash.Get64BitHash(dataToHash));
 }
예제 #2
0
 /// <summary>
 /// Computes a 64-bit hash of the specified string.
 /// </summary>
 /// <param name="valueToHash">The string value to hash.</param>
 /// <returns>The 64-bit hash value.</returns>
 public static ulong MurmurHash64(string valueToHash)
 {
     return(MurmurHash.Get64BitHash(valueToHash));
 }