NonCryptographicHashAlgorithm.GetCurrentHash 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetCurrentHash() |
取得目前計算出的雜湊值,且不修改累積狀態。 |
| GetCurrentHash(Span<Byte>) |
將計算出的雜湊值寫入 |
GetCurrentHash()
取得目前計算出的雜湊值,且不修改累積狀態。
public:
cli::array <System::Byte> ^ GetCurrentHash();
public byte[] GetCurrentHash();
member this.GetCurrentHash : unit -> byte[]
Public Function GetCurrentHash () As Byte()
傳回
Byte[]
已提供的資料的雜湊值。
適用於
GetCurrentHash(Span<Byte>)
將計算出的雜湊值寫入 destination ,且不修改累積狀態。
public:
int GetCurrentHash(Span<System::Byte> destination);
public int GetCurrentHash(Span<byte> destination);
member this.GetCurrentHash : Span<byte> -> int
Public Function GetCurrentHash (destination As Span(Of Byte)) As Integer
參數
傳回
寫入 destination的位元組數,永遠 HashLengthInBytes為 。
例外狀況
destination 比 短 HashLengthInBytes。