Asn1Tag.Decode(ReadOnlySpan<Byte>, Int32) 方法

定義

讀取以 source 開頭的 BER 編碼標記。

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

參數

source
ReadOnlySpan<Byte>

只讀位元組序列,其開頭為 BER 編碼標記。

bytesConsumed
Int32

當這個方法傳回時,會包含提供給已編碼標記的位元組數目。 這個參數會被視為未初始化。

傳回

解碼的標記。

例外狀況

所提供的數據不會譯碼為標記。

適用於