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