แชร์ผ่าน


Asn1Tag.Decode(ReadOnlySpan<Byte>, Int32) Method

Definition

Reads a BER-encoded tag which starts at source.

public:
 static System::Formats::Asn1::Asn1Tag Decode(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] int % bytesConsumed);
public static System.Formats.Asn1.Asn1Tag Decode (ReadOnlySpan<byte> source, out int bytesConsumed);
static member Decode : ReadOnlySpan<byte> * int -> System.Formats.Asn1.Asn1Tag
Public Shared Function Decode (source As ReadOnlySpan(Of Byte), ByRef bytesConsumed As Integer) As Asn1Tag

Parameters

source
ReadOnlySpan<Byte>

The read only byte sequence whose beginning is a BER-encoded tag.

bytesConsumed
Int32

When this method returns, contains the number of bytes that contributed to the encoded tag. This parameter is treated as uninitialized.

Returns

The decoded tag.

Exceptions

The provided data does not decode to a tag.

Applies to