Bearbeiten

Freigeben über


NonCryptographicHashAlgorithm.GetCurrentHash Method

Definition

Overloads

GetCurrentHash()

Gets the current computed hash value without modifying accumulated state.

GetCurrentHash(Span<Byte>)

Writes the computed hash value to destination without modifying accumulated state.

GetCurrentHash()

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

Gets the current computed hash value without modifying accumulated state.

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

Returns

Byte[]

The hash value for the data already provided.

Applies to

GetCurrentHash(Span<Byte>)

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

Writes the computed hash value to destination without modifying accumulated state.

public:
 int GetCurrentHash(Span<System::Byte> destination);
public int GetCurrentHash (Span<byte> destination);
member this.GetCurrentHash : Span<byte> -> int
Public Function GetCurrentHash (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