แชร์ผ่าน


AsnReader Constructor

Definition

Construct an AsnReader over data with a given ruleset.

public AsnReader (ReadOnlyMemory<byte> data, System.Formats.Asn1.AsnEncodingRules ruleSet, System.Formats.Asn1.AsnReaderOptions options = default);
new System.Formats.Asn1.AsnReader : ReadOnlyMemory<byte> * System.Formats.Asn1.AsnEncodingRules * System.Formats.Asn1.AsnReaderOptions -> System.Formats.Asn1.AsnReader
Public Sub New (data As ReadOnlyMemory(Of Byte), ruleSet As AsnEncodingRules, Optional options As AsnReaderOptions = Nothing)

Parameters

data
ReadOnlyMemory<Byte>

The data to read.

ruleSet
AsnEncodingRules

The encoding constraints for the reader.

options
AsnReaderOptions

Additional options for the reader.

Exceptions

ruleSet is not defined.

Remarks

This constructor does not evaluate data for correctness. Any correctness checks are done as part of member methods.

This constructor does not copy data. The caller is responsible for ensuring that the values do not change until the reader is finished.

Applies to