ASN1C C# Runtime Library  7.7
Public Member Functions | Properties | List of all members
Asn1PerMessageBuffer Interface Reference
Inheritance diagram for Asn1PerMessageBuffer:
Asn1PerDecodeBuffer Asn1PerEncodeBuffer Asn1PerInputStream

Public Member Functions

void ByteAlign ()
 
System.IO.Stream GetInputStream ()
 
bool IsAligned ()
 

Properties

int MsgBitCnt [get]
 
Asn1PerTraceHandler TraceHandler [get]
 

Detailed Description

This interface defines constants and methods specific to encoding and decoding PER messages. All of the PER message buffer classes implement this interface.

Member Function Documentation

◆ ByteAlign()

void ByteAlign ( )

This method handles byte-alignment for aligned PER encoding or decoding.

Implemented in Asn1PerDecodeBuffer, and Asn1PerEncodeBuffer.

Referenced by Asn1UniversalString.Encode(), and Asn1CharString.ToString().

◆ GetInputStream()

System.IO.Stream GetInputStream ( )

This method returns an input stream object that represents the message being encoded or decoded.

Returns
Stream containing message

Referenced by Asn1PerEncodeTraceHandler.Print().

◆ IsAligned()

bool IsAligned ( )

This method returns a flag indicating if PER aligned encoding is currently enabled (if false, unaligned is in effect).

Returns
true is aligned; otherwise false

Implemented in Asn1PerEncodeBuffer, and Asn1PerDecodeBuffer.

Referenced by Asn1UniversalString.Encode(), and Asn1CharString.ToString().

Property Documentation

◆ MsgBitCnt

int MsgBitCnt
get

Gets the number of bits in the PER message.

Value: Count of bits in message

Referenced by Asn1PerOutputStream.Close(), Asn1PerTraceHandler.NewBitField(), Asn1PerTraceHandler.SetBitCount(), and Asn1PerTraceHandler.SetBitOffset().

◆ TraceHandler

Asn1PerTraceHandler TraceHandler
get

Gets a reference to the internal trace handler object used to trace the bit fields within a PER message.

Value: Asn1PerTraceHandler object

Referenced by Asn1PerBitFieldPrinter.Print().