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 Attributes | |
---|---|
OSRTCtxtHolder::mpContext | |
OSRTMessageBuffer::mBufferType |
ASN1PERDecodeBuffer | ( | OSBOOL | aligned | ) | [inline] |
This is a default constructor. Use getStatus() method to determine has error occured during the initialization or not.
OSBOOL aligned | Flag indicating if the message was encoded using aligned (TRUE)* or unaligned (FALSE) encoding. |
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.
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.
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. |
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.
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. |
OSBOOL | isA | ( | int | bufferType | ) | [inline, virtual] |
This method checks the type of the message buffer.
int bufferType | Enumerated identifier specifying a derived class. The only possible value for this class is PERDecode. |
EXTPERMETHOD int | readBinaryFile | ( | const char * | filePath | ) |
This method reads the file into the buffer to decode.
const char * filePath | The zero-terminated string containing the path to the file. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.