---
title: "withAAEncodedData(_:)"
framework: applearchive
role: symbol
role_heading: Instance Method
path: "applearchive/archiveheader/withaaencodeddata(_:)"
---

# withAAEncodedData(_:)

Executes a closure with encoded data.

## Declaration

```swift
func withAAEncodedData<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R
```

## Parameters

- `body`: The closure the function executes.
