<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/AccelerateMutableBuffer/withUnsafePixelBuffer(body:)-3k58x",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate0A13MutableBufferPAAs6UInt16V7ElementRtzrlE015withUnsafePixelC04bodyqd__qd__AA6vImageO0hC0Vy_AK9Planar16UVGKXE_tKlF"
  },
  "title" : "withUnsafePixelBuffer(body:)"
}
-->

# withUnsafePixelBuffer(body:)

```
mutating func withUnsafePixelBuffer<R>(body: (vImage.PixelBuffer<vImage.Planar16U>) throws -> R) rethrows -> R
```

---

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)