Rfc3161TimestampRequest.TryDecode Method

Definition

Attemps to interpret the contents of encodedBytes as a DER-encoded Timestamp Request.

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

Parameters

encodedBytes
ReadOnlyMemory<Byte>

The buffer containing a DER-encoded timestamp request.

request
Rfc3161TimestampRequest

When this method returns, the successfully decoded timestamp request if decoding succeeded, or null if decoding failed. This parameter is treated as uninitialized.

bytesConsumed
Int32

When this method returns, the number of bytes that were read from encodedBytes. This parameter is treated as uninitialized.

Returns

true if encodedBytes was successfully interpreted as a Timestamp Request; otherwise, false.

Applies to