byteswap.h
Uli Kusterer
kusterer at gmail.com
Tue Apr 10 15:57:49 PDT 2007
Am 10.04.2007 um 23:34 schrieb Shantonu Sen:
> You can create a byteswap.h that includes <libkern/OSByteOrder.h>,
> and implement whatever functions you need either as macros or
> inline functions to call the libkern versions
There's also an Endian.h header in Apple's frameworks
(CoreServices, I think), which does Little/Big-to-native, always-swap
and always-big-to-little (or the reverse), but the macros in there
are probably named differently. Whatever way you choose, you can
probably just create your own headers containing an #include and half
a dozen #defines.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
More information about the MacOSX-dev
mailing list