Class MurmurHash2
- Namespace
- ValveResourceFormat.ThirdParty
- Assembly
- ValveResourceFormat.dll
Provides MurmurHash2 hashing algorithm implementation.
public static class MurmurHash2
Inheritance
Inherited Members
Methods
Hash(string, uint)
Computes a MurmurHash2 hash for the given string.
public static uint Hash(string data, uint seed)
Parameters
Returns
- uint
-
The hash value.
Hash(ReadOnlySpan<char>, uint)
Computes a MurmurHash2 hash for the given character span.
public static uint Hash(ReadOnlySpan<char> data, uint seed)
Parameters
data
ReadOnlySpan<char>-
The character span to hash.
seed
uint-
The hash seed.
Returns
- uint
-
The hash value.