Rfc3161TimestampTokenInfo.TryEncode(Span<Byte>, Int32) 方法

定义

尝试将此对象编码为 TSTInfo 值,并将结果写入提供的缓冲区。

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

参数

destination
Span<Byte>

目标缓冲区。

bytesWritten
Int32

此方法返回 true时,包含写入缓冲区的 destination 字节。

返回

Boolean

true if the operation succeeded; false if the buffer size was insufficient.

适用于