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 intreadBinaryFile(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(OSBOOLaligned)[inline]

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

Parameters

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

ASN1PERDecodeBuffer(const OSOCTET *, size_t, OSBOOL)

ASN1PERDecodeBuffer(const OSOCTET *pMsgBuf,
size_tmsgBufLen,
OSBOOLaligned
)[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 * pMsgBufA pointer to the message to be decoded.
size_t msgBufLenLength of the message buffer.
OSBOOL alignedFlag 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_tmsgBufLen,
OSBOOLaligned,
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 * pMsgBufA pointer to the message to be decoded.
size_t msgBufLenLength of the message buffer.
OSBOOL alignedFlag indicating if the message was encoded using aligned (TRUE) * or unaligned (FALSE) encoding.
OSRTContext * pContextA pointer to an OSRTContext structure created by the user.

ASN1PERDecodeBuffer(const char *, OSBOOL)

EXTPERMETHODASN1PERDecodeBuffer(const char *filePath,
OSBOOLaligned
)

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

Parameters

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

Member Functions Documentation

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

readBinaryFile(const char *)

EXTPERMETHOD intreadBinaryFile(const char *filePath)

This method reads the file into the buffer to decode.

Parameters

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