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

Crc64

public sealed class Crc64 : NonCryptographicHashAlgorithm
Provides an implementation of the CRC-64 algorithm as described in ECMA-182, Annex B.
public Crc64()

Initializes a new instance of the Crc64 class.

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

Computes the CRC-64 hash of the provided data.

public static byte[] Hash(ReadOnlySpan<byte> source)

Computes the CRC-64 hash of the provided data.

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

Computes the CRC-64 hash of the provided data into the provided destination.

public static ulong HashToUInt64(ReadOnlySpan<byte> source)

Computes the CRC-64 hash of the provided data.

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

Attempts to compute the CRC-64 hash of the provided data into the provided destination.

public Crc64 Clone()

public ulong GetCurrentHashAsUInt64()

Gets the current computed hash value without modifying accumulated state.