編集

次の方法で共有


NonCryptographicHashAlgorithm.TryGetHashAndReset Method

Definition

Attempts to write the computed hash value to destination. If successful, clears the accumulated state.

public:
 bool TryGetHashAndReset(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryGetHashAndReset (Span<byte> destination, out int bytesWritten);
member this.TryGetHashAndReset : Span<byte> * int -> bool
Public Function TryGetHashAndReset (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 and clears the accumulated state if destination is long enough to receive the computed hash value; otherwise, false.

Applies to