語言

NonCryptographicHashAlgorithm.TryGetCurrentHash 方法

定義

嘗試在不修改累積狀態的情況下,將計算出的雜湊值寫入 。destination

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

參數

destination
Span<Byte>

接收計算出雜湊值的緩衝區。

bytesWritten
Int32

當此方法回傳時,包含寫入 destination的位元組數。

傳回

true 如果 destination 足夠長以接收計算出的雜湊值;否則, false

適用於