Carbon


GetHandleSize

Header: MacMemory.h Carbon status: Supported

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

Size GetHandleSize (
    Handle h
);
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 CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


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