語言

NonCryptographicHashAlgorithm.GetCurrentHashCore(Span<Byte>) 方法

定義

當在導出類別中覆寫時,會將計算出來的雜湊值寫入 destination ,且不修改累積狀態。

protected:
 abstract void GetCurrentHashCore(Span<System::Byte> destination);
protected abstract void GetCurrentHashCore(Span<byte> destination);
abstract member GetCurrentHashCore : Span<byte> -> unit
Protected MustOverride Sub GetCurrentHashCore (destination As Span(Of Byte))

參數

destination
Span<Byte>

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

備註

此方法的實作必須精確地寫HashLengthInBytes入位元組。destination 不要假設緩衝區是零初始化的。

類別在 NonCryptographicHashAlgorithm 呼叫此方法前會驗證緩衝區大小,並將張寬切片至精確 HashLengthInBytes 長度。

適用於