Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

AllocPooled

Allocate memory in a memory pool

Declaration

Source position: exec.pas line 2145

function AllocPooled(

  poolHeader: Pointer;

  memSize: Cardinal

):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