Unit 'EXEC' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

AddMemList

add memory to the system free pool

Declaration

Source position: exec.pas line 1185

procedure AddMemList(

  size: LongWord;

  attributes: LongWord;

  pri: LongInt;

  base: POINTER;

  const name: pCHAR

);

Arguments

size

  

the size (in bytes) of the memory area

attributes

  

the attributes word that the memory pool will have

pri

  

the priority for this memory. The higher the priority, the closer to the head of the memory list it will be placed.

base

  

the base of the new memory area

name

  

the name that will be used in the memory header, or nil if no name is to be provided. This name is not copied, so it must remain valid for as long as the memory header is in the system.

Description

Add a new region of memory to the system free pool. The first few bytes will be used to hold the MemHeader structure. The remainder will be made available to the rest of the world.

See also

Exec.ExecAllocMem

  

Allocate memory given certain requirements


Documentation generated on: 2021-07-30