class OSRTMessageBufferIF : public OSRTCtxtHolderIF |
Abstract message buffer or stream interface class. This is the base class for both the in-memory message buffer classes and the run-time stream classes.
Public Member Functions | |
---|---|
void * | getAppInfo () |
size_t | getByteIndex () |
OSOCTET * | getMsgCopy () |
const OSOCTET * | getMsgPtr () |
int | init () |
int | initBuffer ( OSOCTET *, size_t ) |
OSBOOL | isA (int) |
void | setAppInfo (void *) |
void | setDiag ( OSBOOL ) |
void | setNamespace (const OSUTF8CHAR *, const OSUTF8CHAR *, OSRTDList *) |
Protected Member Functions | |
---|---|
~OSRTMessageBufferIF () |
Public Member Enumerations | |
---|---|
enum |
Type
{
BEREncode , BERDecode , PEREncode , PERDecode , XEREncode , XERDecode , XMLEncode , XMLDecode , Stream } |
~OSRTMessageBufferIF | ( | ) | [protected, inline, virtual] |
The virtual destructor does nothing. It is overridden by derived versions of this class.
void * | getAppInfo | ( | ) | [pure virtual] |
Returns a pointer to application-specific information block
size_t | getByteIndex | ( | ) | [pure virtual] |
The getByteIndex method is used to fetch the current byte offset within the current working buffer. For encoding, this is the next location that will be written to. For decoding, this is the next byte the parser will read.
OSOCTET * | getMsgCopy | ( | ) | [pure virtual] |
The getMsgCopy method will return a copy of the encoded ASN.1 message managed by the object. The memory for the copy is allocated by new [] operator, user is responsible to free it by delete [] operator.
const OSOCTET * | getMsgPtr | ( | ) | [pure virtual] |
The getMsgPtr method will return a const pointer to the encoded ASN.1 message managed by the object.
int | initBuffer | ( | OSOCTET * | pMsgBuf, |
size_t | msgBufLen | |||
) | [pure virtual] |
This version of the overloaded initBuffer method initializes the message buffer to point at the given null-terminated character string.
OSBOOL | isA | ( | int | bufferType | ) | [pure virtual] |
This method checks the type of the message buffer.
int bufferType | Enumerated identifier specifying a derived class. Possible values are: BEREncode, BERDecode, PEREncode, PERDecode, XEREncode, XERDecode, XMLEncode, XMLDecode, Stream. |
void | setAppInfo | ( | void * | pAppInfo | ) | [pure virtual] |
Sets the application-specific information block.
void * pAppInfo |
void | setDiag | ( | OSBOOL | value = TRUE | ) | [pure virtual] |
The setDiag method will turn diagnostic tracing on or off.
OSBOOL value = TRUE | - Boolean value (default = TRUE = on) |
void | setNamespace | ( | const OSUTF8CHAR * | , |
const OSUTF8CHAR * | , | |||
OSRTDList * | = 0 | |||
) | [inline, virtual] |
Sets the namespace information.
const OSUTF8CHAR * | |
const OSUTF8CHAR * | |
OSRTDList * = 0 |
BEREncode | |
BERDecode | |
PEREncode | |
PERDecode | |
XEREncode | |
XERDecode | |
XMLEncode | |
XMLDecode | |
Stream |
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.