Check memory available given certain requirements
Source position: exec.pas line 1757
function AvailMem( |
Requirements: LongWord |
):LongWord; |
Requirements |
|
A requirements mask for the memory properties (MEMF_*) |
Number of bytes free with the given properties (or biggest Memory Block)
This function returns the amount of free memory given certain attributes.
To find out what the largest block of a particular type is, add MEMF_LARGEST into the requirements argument. Returning the largest block is a slow operation.
WARNING
Due to the effect of multitasking, the value returned may not actually be the amount of free memory available at that instant.
Snippet
AvailMem(MEMF_LARGEST); // return size of largest available memory chunk