Carbon


StripAddress

Header: MacMemory.h Carbon status: Unsupported

Strips the flag bits from a 24-bit memory address.

Ptr StripAddress (
    void *theAddress
);
theAddress

The address to strip.

function result

A pointer that references the same address passed in the address parameter, but in a form that is comprehensible to the 32-bit Memory Manager.0

DISCUSSION

The effect of the StripAddress function depends on the startup mode of the Memory Manager, not on the current mode. Thus, if the Memory Manager started up in 32-bit mode, the address passed to StripAddress is unchanged (because it already must be a 32-bit address). If the Memory Manager started up in 24-bit mode, the function returns the low-order 3 bytes of the address. You should not pass valid 32-bit addresses to StripAddress if the Memory Manager started up in 24-bit mode.

AVAILABILITY

Not supported in Carbon.

CARBON NOTES

There will be no 24-bit memory mode in Mac OS X, so there will be no 24-bit addresses to strip.


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