---
title: "CFSwapInt16LittleToHost(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfswapint16littletohost(_:)"
---

# CFSwapInt16LittleToHost(_:)

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

## Declaration

```swift
func CFSwapInt16LittleToHost(_ arg: UInt16) -> UInt16
```

## Parameters

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

## Return Value

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()](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)
- [CFSwapInt32(_:)](corefoundation/cfswapint32(_:).md)
- [CFSwapInt32BigToHost(_:)](corefoundation/cfswapint32bigtohost(_:).md)
