Carbon


Translate24To32

Header: MacMemory.h Carbon status: Unsupported

Maps a 24-bit address into the 32-bit address space and returns it.

Ptr Translate24To32 (
    void *addr24
);
addr24

An address that is meaningful to the 24-bit Memory Manager.

function result

A 32-bit address mapped from addr24. If addr24 is already a 32-bit address, the function returns it unchanged.0

DISCUSSION

Unlike the StripAddress function, Translate24To32 does not necessarily return an address that can be used in 24-bit mode. Also, you cannot meaningfully call Translate24To32 on the result of a previous translation.

You need to call Translate24To32 only if you use 24-bit addresses while communicating with external hardware in 32-bit mode and virtual memory is enabled.

AVAILABILITY

Not supported in Carbon.

CARBON NOTES

There will be no 24-bit memory mode in Mac OS X, so there is no need to translate from 24- to 32-bit addresses.


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