ASN1PEREncodeBuffer Class Reference
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.
Inherited Functions |
---|
| ASN1MessageBuffer::ASN1MessageBuffer(Type) |
| ASN1MessageBuffer::ASN1MessageBuffer(Type,OSRTContext *) |
| ASN1MessageBuffer::GetMsgCopy() |
| ASN1MessageBuffer::GetMsgPtr() |
| ASN1MessageBuffer::PrintErrorInfo() |
| ASN1MessageBuffer::addEventHandler(Asn1NamedEventHandler *) |
| ASN1MessageBuffer::getAppInfo() |
| ASN1MessageBuffer::initBuffer(OSRTMEMBUF &) |
| ASN1MessageBuffer::initBuffer(OSUNICHAR *) |
| ASN1MessageBuffer::initBuffer(const OSUTF8CHAR *) |
| ASN1MessageBuffer::isA(Type) |
| ASN1MessageBuffer::removeEventHandler(Asn1NamedEventHandler *) |
| ASN1MessageBuffer::resetErrorInfo() |
| ASN1MessageBuffer::setAppInfo(void *) |
| ASN1MessageBuffer::setErrorHandler(Asn1ErrorHandler *) |
| ASN1MessageBuffer::setRunTimeKey(const OSOCTET *,size_t) |
| ASN1MessageBuffer::setStatus(int) |
| ASN1MessageBuffer::~ASN1MessageBuffer() |
| ASN1PERMessageBuffer::ASN1PERMessageBuffer(Type,OSBOOL) |
| ASN1PERMessageBuffer::ASN1PERMessageBuffer(Type,OSOCTET *,size_t,OSBOOL) |
| ASN1PERMessageBuffer::ASN1PERMessageBuffer(Type,OSOCTET *,size_t,OSBOOL,OSRTContext *) |
| ASN1PERMessageBuffer::BinDump(const char *) |
| ASN1PERMessageBuffer::GetMsgLen() |
| ASN1PERMessageBuffer::HexDump() |
| ASN1PERMessageBuffer::SetTrace(OSBOOL) |
| ASN1PERMessageBuffer::binDump(const char *) |
| ASN1PERMessageBuffer::getMsgLen() |
| ASN1PERMessageBuffer::hexDump() |
| ASN1PERMessageBuffer::setBuffer(const OSOCTET *,size_t) |
| ASN1PERMessageBuffer::setTrace(OSBOOL) |
| OSRTCtxtHolder::OSRTCtxtHolder(OSRTContext *) |
| OSRTCtxtHolder::~OSRTCtxtHolder() |
| OSRTCtxtHolderIF::~OSRTCtxtHolderIF() |
| OSRTMessageBuffer::OSRTMessageBuffer(Type,OSRTContext *) |
| OSRTMessageBuffer::getByteIndex() |
| OSRTMessageBuffer::getContext() |
| OSRTMessageBuffer::getCtxtPtr() |
| OSRTMessageBuffer::getErrorInfo() |
| OSRTMessageBuffer::getErrorInfo(char *,size_t &) |
| OSRTMessageBuffer::getStatus()const |
| OSRTMessageBuffer::initBuffer(OSOCTET *,size_t) |
| OSRTMessageBuffer::printErrorInfo() |
| OSRTMessageBuffer::setDiag(OSBOOL) |
| OSRTMessageBuffer::~OSRTMessageBuffer() |
Constructor & Destructor Documentation
ASN1PEREncodeBuffer(OSBOOL)
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.
Parameters
OSBOOL aligned | Flag indicating if aligned (TRUE) or unaligned (FALSE) encoding should be done. |
ASN1PEREncodeBuffer(OSOCTET *, size_t, OSBOOL)
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.
Parameters
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. |
ASN1PEREncodeBuffer(OSOCTET *, size_t, OSBOOL, OSRTContext *)
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.
Parameters
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. |
Member Functions Documentation
GetMsgBitCnt()
int | GetMsgBitCnt | ( | ) | [inline] |
getMsgBitCnt()
This method returns the length (in bits) of the encoded message.
getMsgCopy()
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'.
getMsgPtr()
EXTPERMETHOD const OSOCTET * | getMsgPtr | ( | ) | [virtual] |
This method returns the internal pointer to the current encoded message.
init()
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.
isA(int)
OSBOOL
| isA | ( | int | bufferType | ) | [inline, virtual] |
This method checks the type of the message buffer.
Parameters
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.