Allocate memory in a memory pool
Source position: exec.pas line 2145
function AllocPooled( |
poolHeader: Pointer; |
memSize: Cardinal |
):Pointer; |
poolHeader |
|
Pointer to the memory pool in which the memory should be allocated. |
memSize |
|
Size of the memory block in bytes |
Pointer to the allocated memory or nil
Allocates memory in a memory pool which is tracked in the pool. A call to DeletePool will free all memory blocks allocated in the pool.
|
Free pooled memory block |
|
|
Create a new pool for memory allocations |
|
|
Free a memory pool |