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

当此方法返回时,包含构成编码标记的字节数。 该参数未经初始化即被处理。

返回

Asn1Tag

解码的标记。

例外

提供的数据无法解码为标记。

适用于