Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

AddFreeList

Add memory to a free list.

Declaration

Source position: icon.pas line 233

function AddFreeList(

  FreeList: PFreeList;

  const Mem: Pointer;

  Size: LongWord

):LongBool;

Arguments

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.

Function result

TRue if the call succeeded else False

Description

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.

See also

AllocEntry

  

Allocate many regions of memory

FreeEntry

  

Allocate many regions of memory

FreeFreeList

  

Free all memory in a free list.


Documentation generated on: 2021-07-30