Rfc3161TimestampTokenInfo.TryDecode 方法

定义

解码编码的 TSTInfo 值。

public:
 static bool TryDecode(ReadOnlyMemory<System::Byte> encodedBytes, [Runtime::InteropServices::Out] System::Security::Cryptography::Pkcs::Rfc3161TimestampTokenInfo ^ % timestampTokenInfo, [Runtime::InteropServices::Out] int % bytesConsumed);
public static bool TryDecode (ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo? timestampTokenInfo, out int bytesConsumed);
public static bool TryDecode (ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo timestampTokenInfo, out int bytesConsumed);
static member TryDecode : ReadOnlyMemory<byte> * Rfc3161TimestampTokenInfo * int -> bool
Public Shared Function TryDecode (encodedBytes As ReadOnlyMemory(Of Byte), ByRef timestampTokenInfo As Rfc3161TimestampTokenInfo, ByRef bytesConsumed As Integer) As Boolean

参数

encodedBytes
ReadOnlyMemory<Byte>

输入或源缓冲区。

timestampTokenInfo
Rfc3161TimestampTokenInfo

此方法返回 true时,解码的数据。 此方法返回 false时,值为 null,这意味着无法解码数据。

bytesConsumed
Int32

用于解码的字节数。

返回

true 如果操作成功,则为 ; false 否则。

适用于