Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

AllocPooled

Allocate memory in a memory pool

Declaration

Source position: exec.pas line 1329

function AllocPooled(

  PoolHeader: Pointer;

  MemSize: LongWord

):Pointer;

Arguments

PoolHeader

  

Pointer to the memory pool in which the memory should be allocated.

MemSize

  

Size of the memory block in bytes

Function result

Pointer to the allocated memory or nil

Description

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.

See also

FreePooled

  

Free pooled memory block

CreatePool

  

Create a new pool for memory allocations

DeletePool

  

Free a memory pool


Documentation generated on: 2021-07-30