Contents

CFSwapInt16BigToHost(_:)

Converts a 16-bit integer from big-endian format to the host’s native byte order.

Declaration

func CFSwapInt16BigToHost(_ arg: UInt16) -> UInt16

Parameters

  • arg:

    The integer whose bytes should be swapped.

Return Value

The integer with its bytes swapped. If the host is big-endian, this function returns arg unchanged.

See Also

Core Foundation Byte Order Utilities Miscellaneous Functions