Redigera

NonCryptographicHashAlgorithm.GetHashAndReset Method

Definition

Overloads

GetHashAndReset()

Gets the current computed hash value and clears the accumulated state.

GetHashAndReset(Span<Byte>)

Writes the computed hash value to destination then clears the accumulated state.

GetHashAndReset()

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

Gets the current computed hash value and clears the accumulated state.

public:
 cli::array <System::Byte> ^ GetHashAndReset();
public byte[] GetHashAndReset ();
member this.GetHashAndReset : unit -> byte[]
Public Function GetHashAndReset () As Byte()

Returns

Byte[]

The hash value for the data already provided.

Applies to

GetHashAndReset(Span<Byte>)

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

Writes the computed hash value to destination then clears the accumulated state.

public:
 int GetHashAndReset(Span<System::Byte> destination);
public int GetHashAndReset (Span<byte> destination);
member this.GetHashAndReset : Span<byte> -> int
Public Function GetHashAndReset (destination As Span(Of Byte)) As Integer

Parameters

destination
Span<Byte>

The buffer that receives the computed hash value.

Returns

The number of bytes written to destination, which is always HashLengthInBytes.

Exceptions

destination is shorter than HashLengthInBytes.

Applies to