---
title: "CFSwapInt64(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfswapint64(_:)"
---

# CFSwapInt64(_:)

Swaps the bytes of a 64-bit integer.

## Declaration

```swift
func CFSwapInt64(_ arg: UInt64) -> UInt64
```

## Parameters

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

## Return Value

Return Value The integer with its bytes swapped.

## 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)
