DekGenius.com
[ Team LiB ] Previous Section Next Section

10.3 Byte Ordering

The byte ordering functions are used to convert primitive data type values from big-endian to little-endian, and vice versa.

NSConvertHostDoubleToSwapped

NSSwappedDouble NSConvertHostDoubleToSwapped(double x)

NSConvertHostFloatToSwapped

NSSwappedFloat NSConvertHostFloatToSwapped(float x)

NSConvertSwappedDoubleToHost

double NSConvertSwappedDoubleToHost(NSSwappedDouble x)

NSConvertSwappedFloatToHost

float NSConvertSwappedFloatToHost(NSSwappedFloat x)

NSHostByteOrder

unsigned int NSHostByteOrder(void)

NSSwapBigDoubleToHost

double NSSwapBigDoubleToHost(NSSwappedDouble x)

NSSwapBigFloatToHost

float NSSwapBigFloatToHost(NSSwappedFloat x)

NSSwapBigIntToHost

unsigned int NSSwapBigIntToHost(unsigned int x)

NSSwapBigLongLongToHost

unsigned long long NSSwapBigLongLongToHost(unsigned long long x)

NSSwapBigLongToHost

unsigned long NSSwapBigLongToHost(unsigned long x)

NSSwapBigShortToHost

unsigned short NSSwapBigShortToHost(unsigned short x)

NSSwapDouble

NSSwappedDouble NSSwapDouble(NSSwappedDouble x)

NSSwapFloat

NSSwappedFloat NSSwapFloat(NSSwappedFloat x)

NSSwapHostDoubleToBig

NSSwappedDouble NSSwapHostDoubleToBig(double x)

NSSwapHostDoubleToLittle

NSSwappedDouble NSSwapHostDoubleToLittle(double x)

NSSwapHostFloatToBig

NSSwappedFloat NSSwapHostFloatToBig(float x)

NSSwapHostFloatToLittle

NSSwappedFloat NSSwapHostFloatToLittle(float x)

NSSwapHostIntToBig

unsigned int NSSwapHostIntToBig(unsigned int x)

NSSwapHostIntToLittle

unsigned int NSSwapHostIntToLittle(unsigned int x)

NSSwapHostLongLongToBig

unsigned long long NSSwapHostLongLongToBig(unsigned long long x)

NSSwapHostLongLongToLittle

unsigned long long NSSwapHostLongLongToLittle(unsigned long long x)

NSSwapHostLongToBig

unsigned long NSSwapHostLongToBig(unsigned long x)

NSSwapHostLongToLittle

unsigned long NSSwapHostLongToLittle(unsigned long x)

NSSwapHostShortToBig

unsigned short NSSwapHostShortToBig(unsigned short x)

NSSwapHostShortToLittle

unsigned short NSSwapHostShortToLittle(unsigned short x)

NSSwapInt

unsigned int NSSwapInt (unsigned int inv)

NSSwapLittleDoubleToHost

double NSSwapLittleDoubleToHost(NSSwappedDouble x)

NSSwapLittleFloatToHost

float NSSwapLittleFloatToHost(NSSwappedFloat x)

NSSwapLittleIntToHost

unsigned int NSSwapLittleIntToHost(unsigned int x)

NSSwapLittleLongLongToHost

unsigned long long NSSwapLittleLongLongToHost(unsigned long long x)

NSSwapLittleLongToHost

unsigned long NSSwapLittleLongToHost(unsigned long x)

NSSwapLittleShortToHost

unsigned short NSSwapLittleShortToHost(unsigned short x)

NSSwapLong

unsigned long NSSwapLong(unsigned long inv)

NSSwapLongLong

unsigned long long NSSwapLongLong(unsigned long long inv)

NSSwapShort

unsigned short NSSwapShort (unsigned short inv)

    [ Team LiB ] Previous Section Next Section