Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 2 - Memory Manager / Memory Manager Reference
Memory Manager Routines / Allocating Temporary Memory


TempMaxMem

To find the size of the largest contiguous block available for temporary allocation, use the TempMaxMem function.

FUNCTION TempMaxMem (VAR grow: Size): Size;
grow
On exit, this parameter always contains 0 after the function call because temporary memory does not come from the application's heap zone, and only that zone can grow. Ignore this parameter.
DESCRIPTION
The TempMaxMem function compacts the current heap zone and returns the size of the largest contiguous block available for temporary allocation.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for TempMaxMem are
Trap macroSelector
_OSDispatch$0015

SPECIAL CONSIDERATIONS
Because TempMaxMem could move memory, you should not call it at interrupt time.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996