Add memory to a free list.
Source position: icon.pas line 351
function AddFreeList( |
freelist: pFreeList; |
const mem: POINTER; |
size: LongWord |
):LongBool; |
freelist |
|
A Pointer to freelist struct previously allocated by the programmer. |
mem |
|
Memory to add to the freelist. |
size |
|
Size of memory chunk to add to the frelist. |
TRue if the call succeeded else False
This routine adds the specified memory to the free list. The free list will be extended (if required). If there is not enough memory to complete the call, NULL is returned.
Note that AddFreeList() does not allocate the requested memory. It only records the memory in the free list.
|
Allocate many regions of memory |
|
|
Allocate many regions of memory |
|
|
Free all memory in a free list. |