XXH64 Method
- Namespace
- SatorImaging.UnityFundamentals
XXH64(ReadOnlySpan<byte>, ulong)
public static long XXH64(ReadOnlySpan<byte> input, ulong seed)
The XXH64 hash function.
Parameters
input
ReadOnlySpan<byte>The data to hash.
seed
ulongA 64-bit value to seed the hash with.
Returns
- long
The 64-bit calculated hash value.
XXH64(ReadOnlySpan<byte>, int, ulong)
public static long XXH64(ReadOnlySpan<byte> input, int length, ulong seed)
The XXH64 hash function.
Parameters
input
ReadOnlySpan<byte>The data to hash.
length
intThe length of input. It is undefined behavior to have length larger than the capacity of input.
seed
ulongA 64-bit value to seed the hash with.
Returns
- long
The 64-bit calculated hash value.
XXH64(string, ulong, Span<byte>)
public static long XXH64(string input, ulong seed, Span<byte> buffer)
The XXH64 hash function for string.
Parameters
input
stringseed
ulongbuffer
Span<byte>Buffer used to convert string to UTF-8 byte array.
Note that enough space must be supplied. (string.Length x3 is recommended.)
Returns
- long
The 64-bit calculated hash value.
XXH64(string, ulong, bool)
public static long XXH64(string input, ulong seed, bool clearSharedBuffer = false)
The XXH64 hash function for string.
Parameters
Returns
- long
The 64-bit calculated hash value.