Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Computes a 32-bit hash of the specified string value.
 /// </summary>
 /// <param name="valueToHash">The string value to hash.</param>
 /// <returns>The 32-bit hash value.</returns>
 public static uint MurmurHash32(string valueToHash)
 {
     return(MurmurHash.Get32BitHash(valueToHash));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Computes a 32-bit hash of the specified string value, after normalizing the string
 /// value by removing leading and trailing spaces and converting it to lower-case.
 /// </summary>
 /// <param name="valueToHash">The value to normalize and then hash.</param>
 /// <returns>The 32-bit hash value.</returns>
 public static uint MurmurHash32NormalizedString(string valueToHash)
 {
     return(MurmurHash.Get32BitHashNormalizedString(valueToHash));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Computes a 32-bit hash of the specified bytes.
 /// </summary>
 /// <param name="dataToHash">The data to hash.</param>
 /// <returns>The 32-bit hash value.</returns>
 public static uint MurmurHash32(byte[] dataToHash)
 {
     return(MurmurHash.Get32BitHash(dataToHash));
 }