語言

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

定義

嘗試將實例編碼為 IETF RFC 3161 TimeStampReq,將位元組寫入所提供的緩衝區。

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

當此方法回傳時,寫入 destination的總位元組數為 。 此參數被視為未初始化。

傳回

true如果 destination 足夠長以接收編碼請求;否則, false。

適用於