Add memory to a free list.
Source position: icon.pas line 221
function AddFreeList( |
FreeList: PFreeList; |
const Mem: Pointer; |
Size: LongWord |
):SmallInt; |
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. |