语言

NonCryptographicHashAlgorithm.GetCurrentHash 方法

定义

重载

名称 说明
GetCurrentHash()

获取当前计算的哈希值,而不修改累积状态。

GetCurrentHash(Span<Byte>)

将计算的哈希值 destination 写入到不修改累积状态。

GetCurrentHash()

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

获取当前计算的哈希值,而不修改累积状态。

public:
 cli::array <System::Byte> ^ GetCurrentHash();
public byte[] GetCurrentHash();
member this.GetCurrentHash : unit -> byte[]
Public Function GetCurrentHash () As Byte()

返回

Byte[]

已提供数据的哈希值。

适用于

GetCurrentHash(Span<Byte>)

Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs
Source:
NonCryptographicHashAlgorithm.cs

将计算的哈希值 destination 写入到不修改累积状态。

public:
 int GetCurrentHash(Span<System::Byte> destination);
public int GetCurrentHash(Span<byte> destination);
member this.GetCurrentHash : Span<byte> -> int
Public Function GetCurrentHash (destination As Span(Of Byte)) As Integer

参数

destination
Span<Byte>

接收计算哈希值的缓冲区。

返回

写入 destination到的字节数,始终 HashLengthInBytes如此。

例外

destination 短于 HashLengthInBytes。

适用于