Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IHeapPool::alloc ( P6SIZE  nBytes,
P6VOID **  ppMem 
)
pure virtual

Allocs memory from the heap pool.

The heap pool will attempt to use the underlying memory pool with the smallest blocksize that will satisfy the request. If the request size is larger than the blocksize of all the defined memory pools, then the request will be satisfied directly from the heap.

Parameters
nBytesThe number of bytes to allocation.
ppMemThe address of a P6VOID pointer in which will be placed a pointer to the allocated memory.
Returns