<PackageReference Include="System.IO.Hashing" Version="10.0.0" />

XxHash64

public sealed class XxHash64 : NonCryptographicHashAlgorithm
Provides an implementation of the XxHash64 algorithm.
public XxHash64()

Initializes a new instance of the XxHash64 class.

public XxHash64(long seed)

Initializes a new instance of the XxHash64 class with a specified seed.

public static byte[] Hash(byte[] source)

Computes the XxHash64 hash of the provided data.

public static byte[] Hash(byte[] source, long seed)

Computes the XxHash64 hash of the provided data using the provided seed.

public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0)

Computes the XxHash64 hash of the provided data.

public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0)

Computes the XxHash64 hash of the provided data into the provided destination.

public static ulong HashToUInt64(ReadOnlySpan<byte> source, long seed = 0)

Computes the XxHash64 hash of the provided data.

public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0)

Attempts to compute the XxHash64 hash of the provided data into the provided destination.

public XxHash64 Clone()

Returns a clone of the current instance, with a copy of the current instance's internal state.

public ulong GetCurrentHashAsUInt64()

Gets the current computed hash value without modifying accumulated state.