swiftlys2/docs/api/ai/
API Reference Misc

MurmurHash2

Class
Namespace: SwiftlyS2.Shared.Misc · Assembly: SwiftlyS2.CS2.dll
public static class MurmurHash2
Inherits object
View source

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