編集

次の方法で共有


NonCryptographicHashAlgorithm.GetCurrentHashCore(Span<Byte>) Method

Definition

When overridden in a derived class, writes the computed hash value to destination without modifying accumulated state.

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))

Parameters

destination
Span<Byte>

The buffer that receives the computed hash value.

Remarks

Implementations of this method must write exactly HashLengthInBytes bytes to destination. Do not assume that the buffer was zero-initialized.

The NonCryptographicHashAlgorithm class validates the size of the buffer before calling this method, and slices the span down to be exactly HashLengthInBytes in length.

Applies to