Class MurmurHash2
Namespace: ValveResourceFormat.ThirdParty
Assembly: ValveResourceFormat.dll
Provides MurmurHash2 hashing algorithm implementation.
public static class MurmurHash2Inheritance
Methods
Hash(string, uint)
Computes a case-insensitive MurmurHash2 hash for the given string.
public static uint Hash(string data, uint seed)Parameters
data string
The string to hash.
seed uint
The hash seed.
Returns
The hash value.
Hash(ReadOnlySpan<char>, uint)
Computes a case-insensitive MurmurHash2 hash for the given string.
public static uint Hash(ReadOnlySpan<char> data, uint seed)Parameters
data ReadOnlySpan<char>
The string to hash.
seed uint
The hash seed.
Returns
The hash value.
Hash(uint, uint)
Computes a MurmurHash2 hash for a single integer.
public static uint Hash(uint data, uint seed)Parameters
data uint
The integer to hash.
seed uint
The hash seed.
Returns
The hash value.
HashCaseSensitive(string, uint)
Computes a case-sensitive MurmurHash2 hash for the given string.
public static uint HashCaseSensitive(string data, uint seed)Parameters
data string
seed uint
Returns
HashCaseSensitive(ReadOnlySpan<char>, uint)
Computes a case sensitive MurmurHash2 hash for the given character span.
public static uint HashCaseSensitive(ReadOnlySpan<char> data, uint seed)Parameters
data ReadOnlySpan<char>
The character span to hash.
seed uint
The hash seed.
Returns
The hash value.

