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.

Public Member Functions
ASN1PEREncodeBuffer(OSBOOL)
ASN1PEREncodeBuffer(OSOCTET *, size_t, OSBOOL)
ASN1PEREncodeBuffer(OSOCTET *, size_t, OSBOOL, OSRTContext *)
intGetMsgBitCnt()
size_t getMsgBitCnt()
EXTPERMETHOD OSOCTET *getMsgCopy()
EXTPERMETHOD const OSOCTET *getMsgPtr()
EXTPERMETHOD intinit()
OSBOOL isA(int)
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()
Inherited Attributes
OSRTCtxtHolder::mpContext
OSRTMessageBuffer::mBufferType

Constructor & Destructor Documentation

ASN1PEREncodeBuffer(OSBOOL)

ASN1PEREncodeBuffer(OSBOOLaligned)[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 alignedFlag indicating if aligned (TRUE) or unaligned (FALSE) encoding should be done.

ASN1PEREncodeBuffer(OSOCTET *, size_t, OSBOOL)

ASN1PEREncodeBuffer(OSOCTET *pMsgBuf,
size_tmsgBufLen,
OSBOOLaligned
)[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.

Parameters

OSOCTET * pMsgBufA pointer to a fixed-size message buffer to receive the encoded message.
size_t msgBufLenSize of the fixed-size message buffer.
OSBOOL alignedFlag indicating if aligned (TRUE) or unaligned (FALSE) encoding should be done.

ASN1PEREncodeBuffer(OSOCTET *, size_t, OSBOOL, OSRTContext *)

ASN1PEREncodeBuffer(OSOCTET *pMsgBuf,
size_tmsgBufLen,
OSBOOLaligned,
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.

Parameters

OSOCTET * pMsgBufA pointer to a fixed-size message buffer to receive the encoded message.
size_t msgBufLenSize of the fixed-size message buffer.
OSBOOL alignedFlag indicating if aligned (TRUE) or unaligned (FALSE) encoding should be done.
OSRTContext * pContextA pointer to an OSRTContext structure created by the user.

Member Functions Documentation

GetMsgBitCnt()

intGetMsgBitCnt()[inline]

getMsgBitCnt()

size_t getMsgBitCnt()[inline]

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 intinit()[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(intbufferType)[inline, virtual]

This method checks the type of the message buffer.

Parameters

int bufferTypeEnumerated identifier specifying a derived class. The only possible value for this class is PEREncode.