Carbon


CompactMemSys

Header: MacMemory.h Carbon status: Unsupported

Compacts the system heap zone.

Size CompactMemSys (
    Size cbNeeded
);
Parameter descriptions
cbNeeded

The size, in bytes, of the block for which CompactMemSys should attempt to make room.

function result

The size, in bytes, of the largest contiguous free block available after compacting the system heap. CompactMemSys does not actually allocate that block.

DISCUSSION

The CompactMemSys function works like the CompactMem function does, but compacts the system heap instead of the current heap.

Call the function MemError to get the result code. See “Result Codes”.

Because CompactMemSys moves memory, you should not call it at interrupt time.

AVAILABILITY

Not supported in Carbon. Not available in Carbon.

CARBON NOTES

Operations on the system heap are not allowed.


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