ASN1PEREncodeBuffer Class Reference
[PER Message Buffer Classes]
#include <asn1PerCppTypes.h>
Inheritance diagram for ASN1PEREncodeBuffer:

Detailed Description
The ASN1PEREncodeBuffer class is derived from the ASN1PERMessageBuffer base class. It contains variables and methods specific to encoding ASN.1 messages. It is used to manage the buffer into which an ASN.1 PER message is to be encoded.
Public Member Functions | |
| ASN1PEREncodeBuffer (OSBOOL aligned) | |
| ASN1PEREncodeBuffer (OSOCTET *pMsgBuf, size_t msgBufLen, OSBOOL aligned) | |
| size_t | getMsgBitCnt () |
| virtual OSOCTET * | getMsgCopy () |
| virtual const OSOCTET * | getMsgPtr () |
| int | init () |
| virtual OSBOOL | isA (int bufferType) |
| int | GetMsgBitCnt () |
Constructor & Destructor Documentation
|
|
The ASN1PEREncodeBuffer class has two overloaded constructors: This version that takes one argument, aligned flag (dynamic encoding version). Use getStatus() method to determine has error occured during the initialization or not.
|
|
||||||||||||||||
|
The ASN1PEREncodeBuffer class has two overloaded constructors: This version that takes a message buffer and size argument and an aligned flag argument (static encoding version). Use getStatus() method to determine has error occured during the initialization or not.
|
Member Function Documentation
|
|
This method returns the length (in bits) of the encoded message.
|
|
|
This method returns a copy of the current encoded message. Memory is allocated for the message using the ‘new’ operation. It is the user’s responsibility to free the memory using ‘delete’.
|
|
|
This method returns the internal pointer to the current encoded message.
|
|
|
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.
|
|
|
This method checks the type of the message buffer.
|
The documentation for this class was generated from the following file:
