Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

rtMemory.h File Reference


Detailed Description

Memory management function and macro definitions#include "asn1type.h"

Go to the source code of this file.

Defines

#define RT_MH_DONTKEEPFREE   0x1
#define OSRTMH_PROPID_DEFBLKSIZE   1
#define OSRTMH_PROPID_SETFLAGS   2
#define OSRTMH_PROPID_CLEARFLAGS   3
#define OSRTMH_PROPID_USER   10
#define rtMemAlloc(pctxt, nbytes)   rtMemHeapAlloc(&(pctxt)->pTypeMemHeap,nbytes)
#define rtMemAllocZ(pctxt, nbytes)   rtMemHeapAllocZ(&(pctxt)->pTypeMemHeap,nbytes)
#define rtMemRealloc(pctxt, mem_p, nbytes)   rtMemHeapRealloc(&(pctxt)->pTypeMemHeap, (void*)mem_p, nbytes)
#define rtMemFreePtr(pctxt, mem_p)
#define rtMemFree(pctxt)   rtMemHeapFreeAll(&(pctxt)->pTypeMemHeap)
#define rtMemReset(pctxt)   rtMemHeapReset(&(pctxt)->pTypeMemHeap)
#define OSCDECL

Typedefs

typedef void *OSCDECL * OSMallocFunc (size_t size)
typedef void *OSCDECL * OSReallocFunc (void *ptr, size_t size)

Functions

typedef void (OSCDECL *OSFreeFunc)(void *ptr)
void rtMemHeapAddRef (void **ppvMemHeap)
void * rtMemHeapAlloc (void **ppvMemHeap, size_t nbytes)
void * rtMemHeapAllocZ (void **ppvMemHeap, size_t nbytes)
int rtMemHeapCheckPtr (void **ppvMemHeap, void *mem_p)
int rtMemHeapCreate (void **ppvMemHeap)
void rtMemHeapFreeAll (void **ppvMemHeap)
void rtMemHeapFreePtr (void **ppvMemHeap, void *mem_p)
void * rtMemHeapMarkSaved (void **ppvMemHeap, ASN1ConstVoidPtr mem_p, ASN1BOOL saved)
void * rtMemHeapRealloc (void **ppvMemHeap, void *mem_p, size_t nbytes_)
void rtMemHeapRelease (void **ppvMemHeap)
void rtMemHeapReset (void **ppvMemHeap)
void rtMemHeapSetProperty (void **ppvMemHeap, ASN1UINT propId, void *pProp)
void rtMemSetAllocFuncs (OSMallocFunc malloc_func, OSReallocFunc realloc_func, OSFreeFunc free_func)
void rtMemFreeOpenSeqExt (ASN1CTXT *pctxt, Asn1RTDList *pElemList)
void rtMemHeapSetFlags (ASN1CTXT *pctxt, ASN1UINT flags)
void rtMemHeapClearFlags (ASN1CTXT *pctxt, ASN1UINT flags)
void rtMemHeapSetDefBlkSize (ASN1CTXT *pctxt, ASN1UINT blkSize)
ASN1UINT rtMemHeapGetDefBlkSize (ASN1CTXT *pctxt)


Copyright © 1997-2004 Objective Systems,Inc.
All Rights Reserved.
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 1 Oct 2004.
ASN1C C/C++ Common Runtime, ASN1C v5.7x