<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/swapping-bytes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Swapping bytes"
}
-->

# Swapping bytes

Byte-swap a buffer.

## Topics

### Swapping bytes

[`func vImageByteSwap_Planar16U(UnsafePointer<vImage_Buffer>, UnsafePointer<vImage_Buffer>, vImage_Flags) -> vImage_Error`](/documentation/Accelerate/vImageByteSwap_Planar16U(_:_:_:))

Byte-swaps an unsigned 16-bit planar buffer.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)