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

Public Member Functions

 Asn1PerBitField (System.String name, int bitOffset, int bitCount)
 
virtual void SetBitCountAndOffset (int count, int offset)
 

Properties

virtual int BitCount [get, set]
 
virtual int BitOffset [get, set]
 
virtual System.String Name [get, set]
 

Detailed Description

This class is used to store information on an individual bit field within a PER message. The information can be used to print a bit trace of the components of a message. It is used in conjunction with the Asn1PerBitFieldList class to map all bits in a message.

Constructor & Destructor Documentation

◆ Asn1PerBitField()

Asn1PerBitField ( System.String  name,
int  bitOffset,
int  bitCount 
)

This constructor initializes all of the variables used to track the bit fields.

Parameters
nameName of the bit field.
bitOffsetOffset within buffer to the bit field
bitCountNumber of bits in the bit field

Member Function Documentation

◆ SetBitCountAndOffset()

virtual void SetBitCountAndOffset ( int  count,
int  offset 
)
virtual

This method sets the count of bits in the bit field and the offset to the bit field in the message buffer.

Parameters
countNumber of bits in the bit field
offsetOffset within buffer to the bit field

Property Documentation

◆ BitCount

virtual int BitCount
getset

Gets and Sets the number of bits in the bit field.

Value: Number of bits.

Referenced by Asn1PerBitFieldPrinter.Print(), and Asn1PerTraceHandler.SetBitCount().

◆ BitOffset

virtual int BitOffset
getset

Gets and Sets the offset to the bit field in the message buffer.

Value: Offset of the bitfield

Referenced by Asn1PerBitFieldPrinter.Print(), Asn1PerBitFieldList.ReplaceLastFieldWithDetail(), and Asn1PerTraceHandler.SetBitCount().

◆ Name

virtual System.String Name
getset

This method returns the name assigned to the bit field.

Value: Bitfield name

Referenced by Asn1PerBitFieldPrinter.Print(), and Asn1PerBitFieldList.ReplaceLastFieldWithDetail().