MurmurHash2
Class MurmurHash2
Namespace: SwiftlyS2.Shared.Misc
Assembly: SwiftlyS2.CS2.dll
public static class MurmurHash2Inheritance
Inherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.MemberwiseClone()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Methods
Hash(byte[], uint)
Compute MurmurHash2 (32-bit) of a byte array with an optional seed.
public static uint Hash(byte[] data, uint seed = 826366246)Parameters
Returns
HashString(string, uint)
Convenience method for strings (UTF8).
public static uint HashString(string text, uint seed = 826366246)Parameters
Returns
HashStringLowercase(string, uint)
Convert a string to lowercase and then hash it.
public static uint HashStringLowercase(string text, uint seed = 826366246)Parameters
Returns