Click or drag to resize

HashCodeGetStableHash16 Method (String)

[This is preliminary documentation and is subject to change.]

non cryptographic stable hash code, it will always return the same hash for the same string. This is simply an implementation of FNV-1 32 bit xor folded to 16 bit https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function

Namespace:  MLAPI.Data
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static ushort GetStableHash16(
	this string txt
)
Request Example View Source

Parameters

txt
Type: SystemString
Text.

Return Value

Type: UInt16
The stable hash32.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also