Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Open Source
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

Asn1PerBitFieldPrinter Class Reference

List of all members.

Detailed Description

This class is used to obtain a formatted printout of the bit fields that make up a PER encoded message.


Public Member Functions

 Asn1PerBitFieldPrinter (Asn1PerMessageBuffer perMessageBuffer, System.IO.Stream encodedMessage)
virtual void Print (System.IO.StreamWriter outs, System.String varName)

Protected Attributes

internal int mBitMask
internal int mByteIndex
internal int mCurrOctet
internal System.IO.Stream mEncodedMessage
internal int mFmtAscCharIdx
internal int mFmtBitCharIdx
internal int mFmtHexCharIdx
internal System.Text.StringBuilder mFormatBuffer
internal Asn1PerMessageBuffer mPerMessageBuffer


Constructor & Destructor Documentation

Asn1PerBitFieldPrinter Asn1PerMessageBuffer  perMessageBuffer,
System.IO.Stream  encodedMessage
 

Constructor

Parameters:
perMessageBuffer PER encode or decode message buffer
encodedMessage Input stream of encoded message


Member Function Documentation

virtual void Print System.IO.StreamWriter  outs,
System.String  varName
[virtual]
 

This method iterates through and prints all of the bit fields in a PER encoded message. Bit tracing needs to have been enabled in the buffer via the 'perTraceEnable' method prior to encoding or decoding the message.

Parameters:
outs Print stream
varName Variable name. This will be printed before all fields (for example, <varName> .field1, etc.)


Member Data Documentation

internal int mBitMask [protected]
 

This variable holds the mask for current bit

internal int mByteIndex [protected]
 

This variable holds the byte index

internal int mCurrOctet [protected]
 

This variable holds the current byte

internal System.IO.Stream mEncodedMessage [protected]
 

This variable holds the input stream

internal int mFmtAscCharIdx [protected]
 

This variable holds the index for formated information

internal int mFmtBitCharIdx [protected]
 

This variable holds the index for formated information

internal int mFmtHexCharIdx [protected]
 

This variable holds the index for formated information

internal System.Text.StringBuilder mFormatBuffer [protected]
 

Initial value:

 
         new System.Text.StringBuilder()
This variable holds the formated information of current byte

internal Asn1PerMessageBuffer mPerMessageBuffer [protected]
 

This variable holds the PER encode or decode message buffer


Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 18 Nov 2005.
ASN1C C# Runtime Library, 5.8