---
title: "CFSwapInt32BigToHost(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfswapint32bigtohost(_:)"
---

# CFSwapInt32BigToHost(_:)

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

## Declaration

```swift
func CFSwapInt32BigToHost(_ arg: UInt32) -> UInt32
```

## Parameters

- `arg`: The integer whose bytes should be swapped.

## Return Value

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

- [CFByteOrderGetCurrent()](corefoundation/cfbyteordergetcurrent().md)
- [CFConvertDoubleHostToSwapped(_:)](corefoundation/cfconvertdoublehosttoswapped(_:).md)
- [CFConvertDoubleSwappedToHost(_:)](corefoundation/cfconvertdoubleswappedtohost(_:).md)
- [CFConvertFloat32HostToSwapped(_:)](corefoundation/cfconvertfloat32hosttoswapped(_:).md)
- [CFConvertFloat32SwappedToHost(_:)](corefoundation/cfconvertfloat32swappedtohost(_:).md)
- [CFConvertFloat64HostToSwapped(_:)](corefoundation/cfconvertfloat64hosttoswapped(_:).md)
- [CFConvertFloat64SwappedToHost(_:)](corefoundation/cfconvertfloat64swappedtohost(_:).md)
- [CFConvertFloatHostToSwapped(_:)](corefoundation/cfconvertfloathosttoswapped(_:).md)
- [CFConvertFloatSwappedToHost(_:)](corefoundation/cfconvertfloatswappedtohost(_:).md)
- [CFSwapInt16(_:)](corefoundation/cfswapint16(_:).md)
- [CFSwapInt16BigToHost(_:)](corefoundation/cfswapint16bigtohost(_:).md)
- [CFSwapInt16HostToBig(_:)](corefoundation/cfswapint16hosttobig(_:).md)
- [CFSwapInt16HostToLittle(_:)](corefoundation/cfswapint16hosttolittle(_:).md)
- [CFSwapInt16LittleToHost(_:)](corefoundation/cfswapint16littletohost(_:).md)
- [CFSwapInt32(_:)](corefoundation/cfswapint32(_:).md)
