ASN1C C# Runtime Library  7.7
Public Member Functions | Properties | List of all members
Asn1SizeConstraint Class Reference

Public Member Functions

 Asn1SizeConstraint (long lower, long upper)
 
 Asn1SizeConstraint (long lower, long upper, long extLower, long extUpper)
 

Properties

bool Extensible [get, set]
 
long ExtLower [get, set]
 
long ExtUpper [get, set]
 
long RootLower [get, set]
 
long RootUpper [get, set]
 

Detailed Description

This class is used to represent a size constraint. Only sizes represented as a single value or range are supported.

This class is mainly for internal use by the compiler when generating methods that encode/decode PER SEQUENCE OF components containing size constraints.

Constructor & Destructor Documentation

◆ Asn1SizeConstraint() [1/2]

Asn1SizeConstraint ( long  lower,
long  upper 
)

This constructor sets the range values for a non-extensisble constraint.

◆ Asn1SizeConstraint() [2/2]

Asn1SizeConstraint ( long  lower,
long  upper,
long  extLower,
long  extUpper 
)

This constructor sets the range values for an extensisble constraint.

Property Documentation

◆ Extensible

bool Extensible
getset

Is constraint extensible?

Referenced by Asn1PerDecodeBuffer.DecodeLength(), and Asn1PerEncodeBuffer.EncodeLength().

◆ ExtLower

long ExtLower
getset

Extension lower bound.

◆ ExtUpper

long ExtUpper
getset

Extension upper bound.

◆ RootLower

long RootLower
getset

◆ RootUpper

long RootUpper
getset