Asn1Tag.Decode(ReadOnlySpan<Byte>, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads a BER-encoded tag that 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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.