ASN1C C# Runtime Library  7.6
Public Member Functions | List of all members
Asn1BerDecoder Interface Reference

Public Member Functions

Asn1Type Decode (Asn1BerDecodeBuffer buffer, bool explicitTag, int implicitLength)
 

Detailed Description

This interface provides an interface for decoding. It is meant to be implemented by generated classes corresponding to enumerated types. It is useful for cases where a non-static decode method is needed, such as during decoding driven by table constraints, where the type to be decoded is not known at compile time.

Member Function Documentation

◆ Decode()

Asn1Type Decode ( Asn1BerDecodeBuffer  buffer,
bool  explicitTag,
int  implicitLength 
)

Decode value from given buffer.

Parameters
buffer

explicitTag if true, the value to be decoded is preceded by a tag and length, which must first be decoded. Otherwise, implicitLength provides the length of the value to be decoded.

Parameters
implicitLengthThe length of the value to be decoded if explicitTag was given as false.

Referenced by Asn1Type.Decode().