Sign in Join
FPDoc Onlineexperiment

TNonFreePooledMemManager.NewItem function

Member of TNonFreePooledMemManagerpublicIn unit PooledMM

Return a pointer to a new memory block.

Declaration

pascal
function NewItem: Pointer

Function result

Pointer to a new memory block.

Description

NewItem returns a pointer to an unused memory block of size ItemSize. It will allocate new memory on the heap if necessary.

Note that there is no way to mark the memory block as free, except by clearing the whole list.

Errors

If no more memory is available, an exception may be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.