AsnDecoder Class
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.
Provides stateless methods for decoding BER-encoded, CER-encoded, and DER-encoded ASN.1 data.
public ref class AsnDecoder abstract sealed
public static class AsnDecoder
type AsnDecoder = class
Public Class AsnDecoder
- Inheritance
-
AsnDecoder
Methods
DecodeLength(ReadOnlySpan<Byte>, AsnEncodingRules, Int32) | |
ReadBitString(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Int32, Nullable<Asn1Tag>) |
Reads a Bit String value from |
ReadBoolean(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads a Boolean value from |
ReadCharacterString(ReadOnlySpan<Byte>, AsnEncodingRules, UniversalTagNumber, Int32, Nullable<Asn1Tag>) |
Reads the next value as character string with the specified tag and encoding type, returning the decoded string. |
ReadEncodedValue(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Int32, Int32) |
Locates the contents range for the encoded value at the beginning of the |
ReadEnumeratedBytes(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads an Enumerated value from |
ReadEnumeratedValue(ReadOnlySpan<Byte>, AsnEncodingRules, Type, Int32, Nullable<Asn1Tag>) |
Reads an Enumerated from |
ReadEnumeratedValue<TEnum>(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads an Enumerated from |
ReadGeneralizedTime(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads a GeneralizedTime value from |
ReadInteger(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads an Integer value from |
ReadIntegerBytes(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads an Integer value from |
ReadNamedBitList(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads a NamedBitList from |
ReadNamedBitListValue(ReadOnlySpan<Byte>, AsnEncodingRules, Type, Int32, Nullable<Asn1Tag>) |
Reads a NamedBitList from |
ReadNamedBitListValue<TFlagsEnum>(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads a NamedBitList from |
ReadNull(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads a |
ReadObjectIdentifier(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads an Object Identifier value from |
ReadOctetString(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Nullable<Asn1Tag>) |
Reads an Octet String value from |
ReadSequence(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Int32, Int32, Nullable<Asn1Tag>) |
Reads a Sequence or Sequence-Of value from |
ReadSetOf(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Int32, Int32, Boolean, Nullable<Asn1Tag>) |
Reads a Set-Of value from |
ReadUtcTime(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Int32, Nullable<Asn1Tag>) |
Reads a UtcTime value from |
TryDecodeLength(ReadOnlySpan<Byte>, AsnEncodingRules, Nullable<Int32>, Int32) | |
TryReadBitString(ReadOnlySpan<Byte>, Span<Byte>, AsnEncodingRules, Int32, Int32, Int32, Nullable<Asn1Tag>) |
Attempts to copy a Bit String value from |
TryReadCharacterString(ReadOnlySpan<Byte>, Span<Char>, AsnEncodingRules, UniversalTagNumber, Int32, Int32, Nullable<Asn1Tag>) |
Reads a character string value from |
TryReadCharacterStringBytes(ReadOnlySpan<Byte>, Span<Byte>, AsnEncodingRules, Asn1Tag, Int32, Int32) |
Attempts to read a character string value from |
TryReadEncodedValue(ReadOnlySpan<Byte>, AsnEncodingRules, Asn1Tag, Int32, Int32, Int32) |
Attempts locate the contents range for the encoded value at the beginning of the |
TryReadInt32(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, Int32, Nullable<Asn1Tag>) |
Attempts to read an Integer value from |
TryReadInt64(ReadOnlySpan<Byte>, AsnEncodingRules, Int64, Int32, Nullable<Asn1Tag>) |
Attempts to read an Integer value from |
TryReadOctetString(ReadOnlySpan<Byte>, Span<Byte>, AsnEncodingRules, Int32, Int32, Nullable<Asn1Tag>) |
Attempts to get an Octet String value from |
TryReadPrimitiveBitString(ReadOnlySpan<Byte>, AsnEncodingRules, Int32, ReadOnlySpan<Byte>, Int32, Nullable<Asn1Tag>) |
Attempts to get a Bit String value from |
TryReadPrimitiveCharacterStringBytes(ReadOnlySpan<Byte>, AsnEncodingRules, Asn1Tag, ReadOnlySpan<Byte>, Int32) |
Attempts to get an unprocessed character string value from |
TryReadPrimitiveOctetString(ReadOnlySpan<Byte>, AsnEncodingRules, ReadOnlySpan<Byte>, Int32, Nullable<Asn1Tag>) |
Attempts to get an Octet String value from |
TryReadUInt32(ReadOnlySpan<Byte>, AsnEncodingRules, UInt32, Int32, Nullable<Asn1Tag>) |
Attempts to read an Integer value from |
TryReadUInt64(ReadOnlySpan<Byte>, AsnEncodingRules, UInt64, Int32, Nullable<Asn1Tag>) |
Attempts to read an Integer value from |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈