NonCryptographicHashAlgorithm.GetCurrentHash 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetCurrentHash() |
获取当前计算的哈希值,而不修改累积状态。 |
| GetCurrentHash(Span<Byte>) |
将计算的哈希值 |
GetCurrentHash()
获取当前计算的哈希值,而不修改累积状态。
public:
cli::array <System::Byte> ^ GetCurrentHash();
public byte[] GetCurrentHash();
member this.GetCurrentHash : unit -> byte[]
Public Function GetCurrentHash () As Byte()
返回
Byte[]
已提供数据的哈希值。
适用于
GetCurrentHash(Span<Byte>)
将计算的哈希值 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到的字节数,始终 HashLengthInBytes如此。
例外
destination 短于 HashLengthInBytes。