ASN1BEREncodeBuffer Class Reference
[BER Message Buffer Classes]
#include <asn1BerCppTypes.h>
Inheritance diagram for ASN1BEREncodeBuffer:

Detailed Description
The ANS1BEREncodeBuffer class is derived from the ASN1BERMessageBuffer base class. It contains variables and methods specific to encoding ASN.1 messages using the Basic Encoding Rules (BER). It is used to manage the buffer into which an ASN.1 message is to be encoded.
Public Member Functions | |
| ASN1BEREncodeBuffer () | |
| ASN1BEREncodeBuffer (OSOCTET *pMsgBuf, size_t msgBufLen) | |
| virtual OSOCTET * | getMsgCopy () |
| virtual const OSOCTET * | getMsgPtr () |
| int | init () |
| virtual OSBOOL | isA (int bufferType) |
| int | setBuffer (OSOCTET *pMsgBuf, size_t msgBufLen) |
| ASN1BEREncodeBuffer & | operator<< (ASN1CType &val) |
Constructor & Destructor Documentation
|
|
Default constructor. This sets all internal variables to their initial values. Use the getStatus() method to determine if an error occured during initialization or not. |
|
||||||||||||
|
Parameterized constructor. This version takes a message buffer and size argument (static encoding version). Use the getStatus() method to determine if an error occured during initialization or not.
|
Member Function Documentation
|
|
This method returns a copy of the current encoded message. Memory is allocated for the message using the 'new []' operation. It is the users's responsibility to free the memory using 'delete []'. Calling Sequence:
where encodeBuffer is an ASN1BEREncodeBuffer object.
|
|
|
This method returns the internal pointer to the current encoded message. Calling Sequence:
where encodeBuffer is an ASN1BEREncodeBuffer object.
|
|
|
This method reinitializes the encode buffer pointer to allow a new message to be encoded. This makes it possible to reuse one message buffer object in a loop to encode multiple messages. After this method is called, any previously encoded message in the buffer will be overwritten on the next encode call. Calling Sequence:
where encodeBuffer is an ASN1BEREncodeBuffer object.
|
|
|
This method checks the type of the message buffer.
|
|
|
This operator encodes instance of ASN1CType derived class. Use getStatus() method to determine has error occured during the operation or not. |
|
||||||||||||
|
This method sets a buffer to receive the encoded message.
|
The documentation for this class was generated from the following file:
