Contents

CFSwapInt32HostToBig(_:)

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

Declaration

func CFSwapInt32HostToBig(_ arg: UInt32) -> UInt32

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