|
Public Member Functions |
|
| OSContext () |
| | The default constructor initializes the mCtxt member variable and sets the reference count variable (mCount) to zero.
|
|
| ~OSContext () |
| | The destructor frees all memory held by the context.
|
| OSCTXT * | getPtr () |
| | The getPtr method returns a pointer to the mCtxt member variable.
|
|
OSUINT32 | getRefCount () |
| | The getRefCount method returns the current reference count.
|
| int | getStatus () const |
| | The getStatus method returns the runtime status code value.
|
| OSBOOL | isInitialized () |
| | Returns TRUE, if initialized correctly, FALSE otherwise.
|
|
void | _ref () |
| | The _ref method increases the reference count by one.
|
|
void | _unref () |
| | The _unref method decreases the reference count by one.
|
| char * | getErrorInfo () |
| | Returns error text in a dynamic memory buffer.
|
| char * | getErrorInfo (size_t *pBufSize) |
| | Returns error text in a dynamic memory buffer.
|
| char * | getErrorInfo (char *pBuf, size_t &bufSize) |
| | Returns error text in a memory buffer.
|
| void * | memAlloc (size_t numocts) |
| | The memAlloc method allocates memory using the C runtime memory management functions.
|
| void * | memRealloc (void *ptr, size_t oldnumocts, size_t numocts) |
| | The memRealloc method reallocates memory using the C runtime memory management functions.
|
| void | memFreePtr (void *ptr) |
| | The memFreePtr method frees the memory at a specific location.
|
|
void | printErrorInfo () |
| | The printErrorInfo method prints information on errors contained within the context.
|
|
void | resetErrorInfo () |
| | The resetErrorInfo method resets information on errors contained within the context.
|
| void | setDiag (OSBOOL value=TRUE) |
| | The setDiag method will turn diagnostic tracing on or off.
|
Protected Attributes |
|
OSCTXT | mCtxt |
| | The mCtxt member variable is a standard C runtime context variable used in most C runtime function calls.
|
|
OSUINT32 | mCount |
| | The mCount member variable holds the reference count of this context.
|
|
OSBOOL | mbInitialized |
| | TRUE, if initialized correctly, FALSE otherwise.
|
This keeps track of all encode/decode function variables between function invocations. It is reference counted to allow a message buffer and type class to share access to it.