Home > Support > Documentation

ASN1PERDecodeBuffer Class Reference
[PER Message Buffer Classes]

#include <asn1PerCppTypes.h>

Inheritance diagram for ASN1PERDecodeBuffer:

ASN1PERMessageBuffer List of all members.

Detailed Description

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 aligned)
 ASN1PERDecodeBuffer (const OSOCTET *pMsgBuf, size_t msgBufLen, OSBOOL aligned)
 ASN1PERDecodeBuffer (const char *filePath, OSBOOL aligned)
virtual OSBOOL isA (int bufferType)
int readBinaryFile (const char *filePath)

Constructor & Destructor Documentation

ASN1PERDecodeBuffer::ASN1PERDecodeBuffer OSBOOL  aligned  )  [inline]
 

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

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

ASN1PERDecodeBuffer::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:
pMsgBuf A pointer to the message to be decoded.
msgBufLen Length of the message buffer.
aligned Flag indicating if the message was encoded using aligned (TRUE) * or unaligned (FALSE) encoding.

ASN1PERDecodeBuffer::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:
filePath Complete file path and name of file to read.
aligned Flag indicating if the message was encoded using aligned (TRUE) * or unaligned (FALSE) encoding.

Member Function Documentation

virtual OSBOOL ASN1PERDecodeBuffer::isA int  bufferType  )  [inline, virtual]
 

This method checks the type of the message buffer.

Parameters:
bufferType Enumerated identifier specifying a derived class. The only possible value for this class is PERDecode.
Returns:
Boolean result of the match operation. True if this is the class corresponding to the identifier argument.

int ASN1PERDecodeBuffer::readBinaryFile const char *  filePath  ) 
 

This method reads the file into the buffer to decode.

Parameters:
filePath The zero-terminated string containing the path to the file.
Returns:
Completion status of operation:
  • 0 (0) = success,
  • negative return value is error.

The documentation for this class was generated from the following file: