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

適用対象