|
|
 |
 |
|
#include <asn1PerCppTypes.h>
Inheritance diagram for ASN1PERDecodeBuffer:
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.
Constructor & Destructor Documentation
| ASN1PERDecodeBuffer::ASN1PERDecodeBuffer |
( |
ASN1BOOL |
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 ASN1OCTET * |
pMsgBuf, |
|
|
size_t |
msgBufLen, |
|
|
ASN1BOOL |
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, |
|
|
ASN1BOOL |
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 ASN1BOOL ASN1PERDecodeBuffer::isA |
( |
Type |
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 (ASN_OK) = success,
- negative return value is error.
|
The documentation for this class was generated from the following file:
|
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.
|
This file was last modified on
8 Sep 2005. ASN1C PER Runtime, ASN1C v5.8x |
|