Carbon


MaxBlock

Header: MacMemory.h Carbon status: Supported

Returns the size of the largest block you could allocate in the current heap zone after a compaction.

SInt32 MaxBlock ();
function result

The maximum contiguous space, in bytes, that you could obtain after compacting the current heap zone. MaxBlock does not actually do the compaction.

DISCUSSION

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

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)