15 #ifndef P6HEAPPOOL_H__
16 #define P6HEAPPOOL_H__ 1
109 #define IF_p6IHeapPool {0xC5CF1068,0xA704,0x4A74,{0xB6,0x19,0x64,0x01,0x96,0xB0,0x5C,0xE8}}
112 #define COMP_p6HeapPool {0xF431B1E6,0x8EAE,0x4AE9,{0x8F,0x65,0x8F,0x5D,0xC4,0x51,0xDB,0x08}}
P6R::P6UINT32 cInitialCount
The initial number of allocation units to allocate.
P6R::P6UINT32 MEMPOOLFLGS
An array of these structures are passed to p6IHeapPool::initialize(), each element of which defines t...
virtual P6R::P6ERR initialize(P6R::P6HEAPPOOLENT *pPooDef, P6R::P6UINT32 cPoolDef, P6R::MEMPOOLFLGS fFlags, const P6R::P6WCHAR *pszName)=0
Initialize the heap pool for use.
P6R::P6UINT32 cBlockSize
The size in bytes of the allocation unit this pool will use.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
The base interface all [p6]COM components must derive from and implement.
virtual P6R::P6ERR free(P6R::P6VOID *pMem)=0
Return the specfied allocation unit back to the heap pool.
virtual P6R::P6ERR getstats(P6R::P6HEAPPOOLSTATSENT *pStats, P6R::P6UINT32 *pcStats)=0
virtual P6R::P6ERR alloc(P6R::P6SIZE nBytes, P6R::P6VOID **ppMem)=0
Allocs memory from the heap pool.
#define P6MEMPOOL_NAME_MAX
Fixed-size, pool based, memory allocator.
P6R::P6UINT32 cGrowBy
The number of allocation units to grow the pool by if it runs out of allocation units.