XXH64 Method
- Namespace
- SatorImaging.UnityFundamentals
XXH64(ReadOnlySpan<byte>, ulong)
public static long XXH64(ReadOnlySpan<byte> input, ulong seed)
The XXH64 hash function.
Parameters
inputReadOnlySpan<byte>The data to hash.
seedulongA 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
inputReadOnlySpan<byte>The data to hash.
lengthintThe length of input. It is undefined behavior to have length larger than the capacity of input.
seedulongA 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
inputstringseedulongbufferSpan<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.