The byte ordering functions are used to convert primitive data type values from big-endian to little-endian, and vice versa.
NSSwappedDouble NSConvertHostDoubleToSwapped(double x)
NSSwappedFloat NSConvertHostFloatToSwapped(float x)
double NSConvertSwappedDoubleToHost(NSSwappedDouble x)
float NSConvertSwappedFloatToHost(NSSwappedFloat x)
unsigned int NSHostByteOrder(void)
double NSSwapBigDoubleToHost(NSSwappedDouble x)
float NSSwapBigFloatToHost(NSSwappedFloat x)
unsigned int NSSwapBigIntToHost(unsigned int x)
unsigned long long NSSwapBigLongLongToHost(unsigned long long x)
unsigned long NSSwapBigLongToHost(unsigned long x)
unsigned short NSSwapBigShortToHost(unsigned short x)
NSSwappedDouble NSSwapDouble(NSSwappedDouble x)
NSSwappedFloat NSSwapFloat(NSSwappedFloat x)
NSSwappedDouble NSSwapHostDoubleToBig(double x)
NSSwappedDouble NSSwapHostDoubleToLittle(double x)
NSSwappedFloat NSSwapHostFloatToBig(float x)
NSSwappedFloat NSSwapHostFloatToLittle(float x)
unsigned int NSSwapHostIntToBig(unsigned int x)
unsigned int NSSwapHostIntToLittle(unsigned int x)
unsigned long long NSSwapHostLongLongToBig(unsigned long long x)
unsigned long long NSSwapHostLongLongToLittle(unsigned long long x)
unsigned long NSSwapHostLongToBig(unsigned long x)
unsigned long NSSwapHostLongToLittle(unsigned long x)
unsigned short NSSwapHostShortToBig(unsigned short x)
unsigned short NSSwapHostShortToLittle(unsigned short x)
unsigned int NSSwapInt (unsigned int inv)
double NSSwapLittleDoubleToHost(NSSwappedDouble x)
float NSSwapLittleFloatToHost(NSSwappedFloat x)
unsigned int NSSwapLittleIntToHost(unsigned int x)
unsigned long long NSSwapLittleLongLongToHost(unsigned long long x)
unsigned long NSSwapLittleLongToHost(unsigned long x)
unsigned short NSSwapLittleShortToHost(unsigned short x)
unsigned long NSSwapLong(unsigned long inv)
unsigned long long NSSwapLongLong(unsigned long long inv)
unsigned short NSSwapShort (unsigned short inv)