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は 。

適用対象