<PackageReference Include="System.IO.Hashing" Version="11.0.0-preview.5.26302.115" />

System.IO.Hashing.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 Crc64(Crc64ParameterSet parameterSet)

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 byte[] Hash(Crc64ParameterSet parameterSet, byte[] source)

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

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 int Hash(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination)

public static ulong HashToUInt64(ReadOnlySpan<byte> source)

Computes the CRC-64 hash of the provided data.

public static ulong HashToUInt64(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source)

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 static bool TryHash(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

public Crc64 Clone()

Creates 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.