NonCryptographicHashAlgorithm.TryGetCurrentHash Method

Definition

Attempts to write the computed hash value to destination without modifying accumulated state.

public:
 bool TryGetCurrentHash(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryGetCurrentHash (Span<byte> destination, out int bytesWritten);
member this.TryGetCurrentHash : Span<byte> * int -> bool
Public Function TryGetCurrentHash (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parameters

destination
Span<Byte>

The buffer that receives the computed hash value.

bytesWritten
Int32

When this method returns, contains the number of bytes written to destination.

Returns

true if destination is long enough to receive the computed hash value; otherwise, false.

Applies to