NSSwapHostLongToBig(_:)
Swaps the bytes of a number.
Declaration
func NSSwapHostLongToBig(_ x: UInt) -> UIntDiscussion
Converts the value in x, specified in the current endian format, to big-endian format and returns the resulting value. If it is necessary to swap the bytes, this function calls NSSwapLong(_:) to perform the swap.
See Also
Related Documentation
Functions
NSConvertHostDoubleToSwapped(_:)NSConvertHostFloatToSwapped(_:)NSConvertSwappedDoubleToHost(_:)NSConvertSwappedFloatToHost(_:)NSHostByteOrder()NSSwapBigDoubleToHost(_:)NSSwapBigFloatToHost(_:)NSSwapBigIntToHost(_:)NSSwapBigLongLongToHost(_:)NSSwapBigLongToHost(_:)NSSwapBigShortToHost(_:)NSSwapDouble(_:)NSSwapFloat(_:)NSSwapHostDoubleToBig(_:)NSSwapHostDoubleToLittle(_:)