Language

NonCryptographicHashAlgorithm.TryGetHashAndReset メソッド

定義

計算されたハッシュ値を destinationに書き込もうとします。 成功した場合は、累積状態をクリアします。

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

パラメーター

destination
Span<Byte>

計算されたハッシュ値を受け取るバッファー。

bytesWritten
Int32

このメソッドから制御が戻るときに、 destinationに書き込まれたバイト数が格納されます。

返品

true 計算されたハッシュ値を受け取るのに十分な長さ destination 場合は累積状態をクリアします。それ以外の場合は false。

適用対象