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

XxHash128

Provides an implementation of the XXH128 hash algorithm for generating a 128-bit hash.
public XxHash128()

Initializes a new instance of the XxHash128 class using the default seed value 0.

public XxHash128(long seed)

Initializes a new instance of the XxHash128 class using the specified seed.

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

Computes the XXH128 hash of the provided source data.

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

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

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

Computes the XXH128 hash of the provided source data using the optionally provided seed.

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

Computes the XXH128 hash of the provided source data into the provided destination using the optionally provided seed.

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

Attempts to compute the XXH128 hash of the provided source data into the provided destination using the optionally provided seed.