Crc64 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an implementation of the CRC-64 algorithm as described in ECMA-182, Annex B.
public ref class Crc64 sealed : System::IO::Hashing::NonCryptographicHashAlgorithm
public sealed class Crc64 : System.IO.Hashing.NonCryptographicHashAlgorithm
type Crc64 = class
inherit NonCryptographicHashAlgorithm
Public NotInheritable Class Crc64
Inherits NonCryptographicHashAlgorithm
- Inheritance
Remarks
This implementation emits the answer in the Big Endian byte order so that
the CRC residue relationship (CRC(message concat CRC(message)) is a fixed value) holds.
For CRC-64, this stable output is the byte sequence
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
.
There are multiple, incompatible, definitions of a 64-bit cyclic redundancy check (CRC) algorithm. When interoperating with another system, ensure that you are using the same definition. The definition used by this implementation is not compatible with the cyclic redundancy check described in ISO 3309.
Constructors
Crc64() |
Initializes a new instance of the Crc64 class. |
Properties
HashLengthInBytes |
Gets the number of bytes produced from this hash algorithm. (Inherited from NonCryptographicHashAlgorithm) |
Methods
Append(Byte[]) |
Appends the contents of |
Append(ReadOnlySpan<Byte>) |
Appends the contents of |
Append(Stream) |
Appends the contents of |
AppendAsync(Stream, CancellationToken) |
Asychronously reads the contents of |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetCurrentHash() |
Gets the current computed hash value without modifying accumulated state. (Inherited from NonCryptographicHashAlgorithm) |
GetCurrentHash(Span<Byte>) |
Writes the computed hash value to |
GetCurrentHashAsUInt64() |
Gets the current computed hash value without modifying accumulated state. |
GetCurrentHashCore(Span<Byte>) |
When overridden in a derived class, writes the computed hash value to |
GetHashAndReset() |
Gets the current computed hash value and clears the accumulated state. (Inherited from NonCryptographicHashAlgorithm) |
GetHashAndReset(Span<Byte>) |
Writes the computed hash value to |
GetHashAndResetCore(Span<Byte>) |
Writes the computed hash value to |
GetHashCode() |
Obsolete.
This method is not supported and should not be called. Call GetCurrentHash() or GetHashAndReset() instead. (Inherited from NonCryptographicHashAlgorithm) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
Hash(Byte[]) |
Computes the CRC-64 hash of the provided data. |
Hash(ReadOnlySpan<Byte>, Span<Byte>) |
Computes the CRC-64 hash of the provided data into the provided destination. |
Hash(ReadOnlySpan<Byte>) |
Computes the CRC-64 hash of the provided data. |
HashToUInt64(ReadOnlySpan<Byte>) |
Computes the CRC-64 hash of the provided data. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Reset() |
Resets the hash computation to the initial state. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TryGetCurrentHash(Span<Byte>, Int32) |
Attempts to write the computed hash value to |
TryGetHashAndReset(Span<Byte>, Int32) |
Attempts to write the computed hash value to |
TryHash(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
Attempts to compute the CRC-64 hash of the provided data into the provided destination. |
Applies to
.NET