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

XxHash32

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

Initializes a new instance of the XxHash32 class.

public XxHash32(int seed)

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

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

Computes the XxHash32 hash of the provided data.

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

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

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

Computes the XxHash32 hash of the provided data.

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

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

public static uint HashToUInt32(ReadOnlySpan<byte> source, int seed = 0)

Computes the XxHash32 hash of the provided data.

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

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

public uint GetCurrentHashAsUInt32()

Gets the current computed hash value without modifying accumulated state.