Rfc3161TimestampTokenInfo.TryDecode Method

Definition

Decodes an encoded TSTInfo value.

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

Parameters

encodedBytes
ReadOnlyMemory<Byte>

The input or source buffer.

timestampTokenInfo
Rfc3161TimestampTokenInfo

When this method returns true, the decoded data. When this method returns false, the value is null, meaning the data could not be decoded.

bytesConsumed
Int32

The number of bytes used for decoding.

Returns

true if the operation succeeded; false otherwise.

Applies to