class ASN1PEREncodeBuffer : public ASN1PERMessageBuffer |
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 ) | |
ASN1PEREncodeBuffer ( OSOCTET *, size_t , OSBOOL ) | |
ASN1PEREncodeBuffer ( OSOCTET *, size_t , OSBOOL , OSRTContext *) | |
int | GetMsgBitCnt () |
size_t | getMsgBitCnt () |
EXTPERMETHOD OSOCTET * | getMsgCopy () |
EXTPERMETHOD const OSOCTET * | getMsgPtr () |
EXTPERMETHOD int | init () |
OSBOOL | isA (int) |
Inherited Attributes | |
---|---|
OSRTCtxtHolder::mpContext | |
OSRTMessageBuffer::mBufferType |
ASN1PEREncodeBuffer | ( | OSBOOL | aligned | ) | [inline] |
The ASN1PEREncodeBuffer class has three 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.
OSBOOL aligned | Flag indicating if aligned (TRUE) or unaligned (FALSE) encoding should be done. |
ASN1PEREncodeBuffer | ( | OSOCTET * | pMsgBuf, |
size_t | msgBufLen, | ||
OSBOOL | aligned | ||
) | [inline] |
The ASN1PEREncodeBuffer class has three 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.
ASN1PEREncodeBuffer | ( | OSOCTET * | pMsgBuf, |
size_t | msgBufLen, | ||
OSBOOL | aligned, | ||
OSRTContext * | pContext | ||
) | [inline] |
The ASN1PEREncodeBuffer class has three 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.
OSOCTET * pMsgBuf | A pointer to a fixed-size message buffer to receive the encoded message. |
size_t msgBufLen | Size of the fixed-size message buffer. |
OSBOOL aligned | Flag indicating if aligned (TRUE) or unaligned (FALSE) encoding should be done. |
OSRTContext * pContext | A pointer to an OSRTContext structure created by the user. |
size_t | getMsgBitCnt | ( | ) | [inline] |
This method returns the length (in bits) of the encoded message.
EXTPERMETHOD OSOCTET * | getMsgCopy | ( | ) | [virtual] |
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'.
EXTPERMETHOD const OSOCTET * | getMsgPtr | ( | ) | [virtual] |
This method returns the internal pointer to the current encoded message.
EXTPERMETHOD int | init | ( | ) | [virtual] |
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.
OSBOOL | isA | ( | int | bufferType | ) | [inline, virtual] |
This method checks the type of the message buffer.
int bufferType | Enumerated identifier specifying a derived class. The only possible value for this class is PEREncode. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.