ASN1C C/C++ Common Runtime
ASN1C v7.4.x
|
#include <ASN1Context.h>
Public Member Functions | |
EXTRTMETHOD | ASN1Context () |
virtual EXTRTMETHOD int | setRunTimeKey (const OSOCTET *key, size_t keylen) |
OSCTXT * | GetPtr () |
void | PrintErrorInfo () |
Public Member Functions inherited from OSRTContext | |
EXTRTMETHOD | OSRTContext () |
virtual EXTRTMETHOD | ~OSRTContext () |
OSCTXT * | getPtr () |
const OSCTXT * | getPtr () const |
EXTRTMETHOD OSUINT32 | getRefCount () |
int | getStatus () const |
OSBOOL | isInitialized () |
EXTRTMETHOD void | _ref () |
EXTRTMETHOD void | _unref () |
EXTRTMETHOD char * | getErrorInfo () |
EXTRTMETHOD char * | getErrorInfo (size_t *pBufSize) |
EXTRTMETHOD char * | getErrorInfo (char *pBuf, size_t &bufSize) |
void * | memAlloc (size_t numocts) |
void * | memAllocZ (size_t numocts) |
void | memFreeAll () |
void | memFreePtr (void *ptr) |
void * | memRealloc (void *ptr, size_t numocts) |
void | memReset () |
void | printErrorInfo () |
void | resetErrorInfo () |
OSBOOL | setDiag (OSBOOL value=TRUE) |
int | setStatus (int stat) |
Additional Inherited Members | |
Protected Attributes inherited from OSRTContext | |
OSCTXT | mCtxt |
OSUINT32 | mCount |
OSBOOL | mbInitialized |
int | mStatus |
Reference counted ASN.1 context class. 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.
EXTRTMETHOD ASN1Context::ASN1Context | ( | ) |
The default constructor initializes the mCtxt member variable for ASN.1 encoding/decoding.
|
virtual |
This method sets run-time key in the context. When using an unlimited runtime, this method will still set the key, but the runtime does not actually check it.
key | - array of octets with the key |
keylen | - number of octets in key array. |
Reimplemented from OSRTContext.