NonCryptographicHashAlgorithm.GetCurrentHashCore(Span<Byte>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在導出類別中覆寫時,會將計算出來的雜湊值寫入 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))
參數
備註
此方法的實作必須精確地寫HashLengthInBytes入位元組。destination
不要假設緩衝區是零初始化的。
類別在 NonCryptographicHashAlgorithm 呼叫此方法前會驗證緩衝區大小,並將張寬切片至精確 HashLengthInBytes 長度。