CFSwapInt16HostToLittle(_:)
Converts a 16-bit integer from the host’s native byte order to little-endian format.
Declaration
func CFSwapInt16HostToLittle(_ arg: UInt16) -> UInt16Parameters
- arg:
The integer whose bytes should be swapped.
Return Value
The integer with its bytes swapped. If the host is little-endian, this function returns arg unchanged.
See Also
Core Foundation Byte Order Utilities Miscellaneous Functions
CFByteOrderGetCurrent()CFConvertDoubleHostToSwapped(_:)CFConvertDoubleSwappedToHost(_:)CFConvertFloat32HostToSwapped(_:)CFConvertFloat32SwappedToHost(_:)CFConvertFloat64HostToSwapped(_:)CFConvertFloat64SwappedToHost(_:)CFConvertFloatHostToSwapped(_:)CFConvertFloatSwappedToHost(_:)CFSwapInt16(_:)CFSwapInt16BigToHost(_:)CFSwapInt16HostToBig(_:)CFSwapInt16LittleToHost(_:)CFSwapInt32(_:)CFSwapInt32BigToHost(_:)