Share via


Asn1Tag.TryDecode(ReadOnlySpan<Byte>, Asn1Tag, Int32) Yöntem

Tanım

ile sourcebaşlayan BER kodlu bir etiketi okumaya çalışır.

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

Parametreler

source
ReadOnlySpan<Byte>

Başlangıcı BER ile kodlanmış bir etiket olan salt okunur bayt dizisi.

tag
Asn1Tag

Kodu çözülen etiket.

bytesConsumed
Int32

Bu yöntem döndürdüğünde, kodlanmış etikete katkıda bulunan bayt sayısını (hata durumunda 0) içerir. Bu parametre başlatılmamış olarak değerlendirilir.

Döndürülenler

true bir etiketin kodu doğru şekilde çözüldüyse; aksi takdirde , false.

Şunlara uygulanır