Table of Contents

XXH64 Method

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 ulong

A 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 int

The length of input. It is undefined behavior to have length larger than the capacity of input.

seed ulong

A 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 string
seed ulong
buffer 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

input string
seed ulong
clearSharedBuffer bool

Clear buffer when return it to shared array pool.

Returns

long

The 64-bit calculated hash value.