Op Englesch liesen Editéieren

Deelen iwwer


NonCryptographicHashAlgorithm.GetCurrentHashCore(Span<Byte>) Method

Definition

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

C#
protected abstract void GetCurrentHashCore(Span<byte> destination);

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

Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)