Show / Hide Table of Contents

Method Hash.Fast(+ 1 overload)


Overload

FNV-1 hash, modified to make faster with long strings (then takes every n-th character).

public static int Fast(char* data, int lengthChars)
Parameters
data  (char*)
lengthChars  (int)
Returns
int

Overload(top)

FNV-1 hash, modified to make faster with long strings (then takes every n-th character).

public static int Fast(ReadOnlySpan<char> s)
Parameters
s  (ReadOnlySpan<char>)

String. Can be null.

Returns
int