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