Carbon


TempMaxMem

Header: MacMemory.h Carbon status: Supported

Compacts the current heap zone and returns the size of the largest contiguous block available for temporary allocation.

Size TempMaxMem (
    Size *grow
);
Parameter descriptions
grow

On return, 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.

function result

The size of the largest contiguous block available for temporary allocation.

SPECIAL CONSIDERATIONS

Because TempMaxMem can move memory, you should not call it at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)