Byte Order Utilities

Examine and manage the byte order of numbers communicated through network channels.

Topics

Functions

NSConvertHostDoubleToSwapped

Performs a type conversion.

NSConvertHostFloatToSwapped

Performs a type conversion.

NSConvertSwappedDoubleToHost

Performs a type conversion.

NSConvertSwappedFloatToHost

Performs a type conversion.

NSHostByteOrder

Returns the endian format.

NSSwapBigDoubleToHost

Swaps the bytes of a number.

NSSwapBigFloatToHost

Swaps the bytes of a number.

NSSwapBigIntToHost

Swaps the bytes of a number.

NSSwapBigLongLongToHost

Swaps the bytes of a number.

NSSwapBigLongToHost

Swaps the bytes of a number.

NSSwapBigShortToHost

Swaps the bytes of a number.

NSSwapDouble

Swaps the bytes of a number.

NSSwapFloat

Swaps the bytes of a number.

NSSwapHostDoubleToBig

Swaps the bytes of a number.

NSSwapHostDoubleToLittle

Swaps the bytes of a number.

NSSwapHostFloatToBig

Swaps the bytes of a number.

NSSwapHostFloatToLittle

Swaps the bytes of a number.

NSSwapHostIntToBig

Swaps the bytes of a number.

NSSwapHostIntToLittle

Swaps the bytes of a number.

NSSwapHostLongLongToBig

Swaps the bytes of a number.

NSSwapHostLongLongToLittle

Swaps the bytes of a number.

NSSwapHostLongToBig

Swaps the bytes of a number.

NSSwapHostLongToLittle

Swaps the bytes of a number.

NSSwapHostShortToBig

Swaps the bytes of a number.

NSSwapHostShortToLittle

Swaps the bytes of a number.

NSSwapInt

Swaps the bytes of a number.

NSSwapLittleDoubleToHost

Swaps the bytes of a number.

NSSwapLittleFloatToHost

Swaps the bytes of a number.

NSSwapLittleIntToHost

Swaps the bytes of a number.

NSSwapLittleLongLongToHost

Swaps the bytes of a number.

NSSwapLittleLongToHost

Swaps the bytes of a number.

NSSwapLittleShortToHost

Swaps the bytes of a number.

NSSwapLong

Swaps the bytes of a number.

NSSwapLongLong

Swaps the bytes of a number.

NSSwapShort

Swaps the bytes of a number.

Constants

NSSwappedDouble

Opaque structure containing endian-independent double value.

NSSwappedFloat

Opaque type containing an endian-independent float value.

Byte Order

Recognize constants that specify a byte-order format.

NSByteOrder

Constants that specify a byte-order format.