NSSwapDouble(_:)
Swaps the bytes of a number.
Declaration
func NSSwapDouble(_ x: NSSwappedDouble) -> NSSwappedDoubleDiscussion
Swaps the bytes of x and returns the resulting value. Bytes are swapped from each low-order position to the corresponding high-order position and vice versa. For example, if the bytes of x are numbered from 1 to 8, this function swaps bytes 1 and 8, bytes 2 and 7, bytes 3 and 6, and bytes 4 and 5.
See Also
Related Documentation
Functions
NSConvertHostDoubleToSwapped(_:)NSConvertHostFloatToSwapped(_:)NSConvertSwappedDoubleToHost(_:)NSConvertSwappedFloatToHost(_:)NSHostByteOrder()NSSwapBigDoubleToHost(_:)NSSwapBigFloatToHost(_:)NSSwapBigIntToHost(_:)NSSwapBigLongLongToHost(_:)NSSwapBigLongToHost(_:)NSSwapBigShortToHost(_:)NSSwapFloat(_:)NSSwapHostDoubleToBig(_:)NSSwapHostDoubleToLittle(_:)NSSwapHostFloatToBig(_:)