ASN1PERDecodeBuffer Class Reference

class ASN1PERDecodeBuffer : public ASN1PERMessageBuffer

The ASN1PERDecodeBuffer class is derived from the ASN1PERMessageBuffer base class. It contains variables and methods specific to decoding ASN.1 PER messages. It is used to manage the input buffer containing the ASN.1 message to be decoded. This class has 3 overloaded constructors.

Public Member Functions
ASN1PERDecodeBuffer ( OSBOOL )
ASN1PERDecodeBuffer (const OSOCTET *, size_t , OSBOOL )
ASN1PERDecodeBuffer (const OSOCTET *, size_t , OSBOOL , OSRTContext *)
ASN1PERDecodeBuffer (const char *, OSBOOL )
OSBOOL isA (int)
EXTPERMETHOD int readBinaryFile (const char *)
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::getMsgCopy()
OSRTMessageBuffer::getMsgPtr()
OSRTMessageBuffer::getStatus()const
OSRTMessageBuffer::init()
OSRTMessageBuffer::initBuffer(OSOCTET *,size_t)
OSRTMessageBuffer::printErrorInfo()
OSRTMessageBuffer::setDiag(OSBOOL)
OSRTMessageBuffer::~OSRTMessageBuffer()
Inherited Attributes
OSRTCtxtHolder::mpContext
OSRTMessageBuffer::mBufferType

Constructor & Destructor Documentation

ASN1PERDecodeBuffer(OSBOOL)

ASN1PERDecodeBuffer ( OSBOOL aligned ) [inline]

This is a default constructor. Use getStatus() method to determine has error occured during the initialization or not.

Parameters

OSBOOL aligned Flag indicating if the message was encoded using aligned (TRUE)* or unaligned (FALSE) encoding.

ASN1PERDecodeBuffer(const OSOCTET *, size_t, OSBOOL)

ASN1PERDecodeBuffer ( const OSOCTET * pMsgBuf,
size_t msgBufLen,
OSBOOL aligned
) [inline]

This constructor is used to describe the message to be decoded. Use getStatus() method to determine has error occured during the initialization or not.

Parameters

const OSOCTET * pMsgBuf A pointer to the message to be decoded.
size_t msgBufLen Length of the message buffer.
OSBOOL aligned Flag indicating if the message was encoded using aligned (TRUE) * or unaligned (FALSE) encoding.

ASN1PERDecodeBuffer(const OSOCTET *, size_t, OSBOOL, OSRTContext *)

ASN1PERDecodeBuffer ( const OSOCTET * pMsgBuf,
size_t msgBufLen,
OSBOOL aligned,
OSRTContext * pContext
) [inline]

This constructor is used to describe the message to be decoded. Use getStatus() method to determine has error occured during the initialization or not.

Parameters

const OSOCTET * pMsgBuf A pointer to the message to be decoded.
size_t msgBufLen Length of the message buffer.
OSBOOL aligned Flag indicating if the message was encoded using aligned (TRUE) * or unaligned (FALSE) encoding.
OSRTContext * pContext A pointer to an OSRTContext structure created by the user.

ASN1PERDecodeBuffer(const char *, OSBOOL)

EXTPERMETHOD ASN1PERDecodeBuffer ( const char * filePath,
OSBOOL aligned
)

This constructor takes a pointer to the path of a file containing a binary PER message to be decoded.

Parameters

const char * filePath Complete file path and name of file to read.
OSBOOL aligned Flag indicating if the message was encoded using aligned (TRUE) * or unaligned (FALSE) encoding.

Member Functions Documentation

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 PERDecode.

readBinaryFile(const char *)

EXTPERMETHOD int readBinaryFile ( const char * filePath )

This method reads the file into the buffer to decode.

Parameters

const char * filePath The zero-terminated string containing the path to the file.