Carbon


GetHandleSize

Header: MacMemory.h Carbon status: Supported

Returns the logical size of the relocatable block corresponding to a handle.

Size GetHandleSize (
    Handle h
);
Parameter descriptions
h

A handle to a relocatable block.

function result

The logical size, in bytes, of the relocatable block whose handle is h. In case of error, the function returns 0.

DISCUSSION

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

You should not call GetHandleSize at interrupt time because the heap might be in an inconsistent state.

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)