IncrementalHash.TryGetHashAndReset(Span<Byte>, Int32) 方法

定义

在哈希算法处理最后一个数据后,尝试结束哈希计算。

public:
 bool TryGetHashAndReset(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryGetHashAndReset (Span<byte> destination, out int bytesWritten);
member this.TryGetHashAndReset : Span<byte> * int -> bool
Public Function TryGetHashAndReset (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

参数

destination
Span<Byte>

要接收哈希或基于哈希的消息验证代码 (HMAC) 值的缓冲区。

bytesWritten
Int32

此方法返回时,为写入 destination 的字节总数。 该参数未经初始化即被处理。

返回

Boolean

destination 的长度不足以接收哈希或 HMAC 值,则为 true;否则为 false

例外

适用于