語言

NonCryptographicHashAlgorithm.GetHashAndReset 方法

定義

多載

名稱 Description
GetHashAndReset()

取得目前計算的雜湊值並清除累積狀態。

GetHashAndReset(Span<Byte>)

將計算出的雜湊值寫入, destination 然後清除累積狀態。

GetHashAndReset()

來源:
NonCryptographicHashAlgorithm.cs
來源:
NonCryptographicHashAlgorithm.cs
來源:
NonCryptographicHashAlgorithm.cs
來源:
NonCryptographicHashAlgorithm.cs

取得目前計算的雜湊值並清除累積狀態。

public:
 cli::array <System::Byte> ^ GetHashAndReset();
public byte[] GetHashAndReset();
member this.GetHashAndReset : unit -> byte[]
Public Function GetHashAndReset () As Byte()

傳回

Byte[]

已提供的資料的雜湊值。

適用於

GetHashAndReset(Span<Byte>)

來源:
NonCryptographicHashAlgorithm.cs
來源:
NonCryptographicHashAlgorithm.cs
來源:
NonCryptographicHashAlgorithm.cs
來源:
NonCryptographicHashAlgorithm.cs

將計算出的雜湊值寫入, destination 然後清除累積狀態。

public:
 int GetHashAndReset(Span<System::Byte> destination);
public int GetHashAndReset(Span<byte> destination);
member this.GetHashAndReset : Span<byte> -> int
Public Function GetHashAndReset (destination As Span(Of Byte)) As Integer

參數

destination
Span<Byte>

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

傳回

寫入 destination的位元組數,永遠 HashLengthInBytes為 。

例外狀況

destination 比 短 HashLengthInBytes

適用於