Method CalculateKnuthHash
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
CalculateKnuthHash(ReadOnlySpan<char>)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this ReadOnlySpan<char> chars)
Parameters
chars
ReadOnlySpan<char>Characters to compute the hash value from.
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(Span<char>)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this Span<char> chars)
Parameters
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(ReadOnlyMemory<char>)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this ReadOnlyMemory<char> chars)
Parameters
chars
ReadOnlyMemory<char>Characters to compute the hash value from.
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(Memory<char>)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this Memory<char> chars)
Parameters
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(ArraySegment<char>)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this ArraySegment<char> chars)
Parameters
chars
ArraySegment<char>Characters to compute the hash value from.
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(char[])
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this char[] chars)
Parameters
chars
char[]Characters to compute the hash value from.
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(char[], int, int)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this char[] chars, int start, int count)
Parameters
chars
char[]Characters to compute the hash value from.
start
intOffset in the array to start calculating from.
count
intNumber of characters to compute the hash from.
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(string)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this string chars)
Parameters
chars
stringCharacters to compute the hash value from.
Returns
- ulong
Computer 64-bit Knuth hash.
CalculateKnuthHash(string, int, int)
Computes a 64-bit Knuth hash from supplied characters.
public static ulong CalculateKnuthHash(this string chars, int start, int count)
Parameters
chars
stringCharacters to compute the hash value from.
start
intOffset in the array to start calculating from.
count
intNumber of characters to compute the hash from.
Returns
- ulong
Computer 64-bit Knuth hash.