语言

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 长度。

适用于