<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleArchive",
  "identifier" : "/documentation/AppleArchive/ArchiveHeader/EntryXATBlob",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Apple Archive",
      "AppleArchive"
    ],
    "preciseIdentifier" : "s:12AppleArchive0B6HeaderC12EntryXATBlobC"
  },
  "title" : "ArchiveHeader.EntryXATBlob"
}
-->

# ArchiveHeader.EntryXATBlob

An object that describes the extended attributes of an archive entry.

```
class EntryXATBlob
```

## Topics

### Creating an Extended Attributes Blob

[`init()`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/init())

Creates a new empty extended attribute blob.

[`init?(directory: FilePath, path: FilePath, flags: ArchiveFlags)`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/init(directory:path:flags:))

Creates a new extended attribute blob from the specified directory and path.

[`init?(withAAEncodedData: UnsafeBufferPointer<UInt8>)`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/init(withAAEncodedData:))

Creates a new archive header from encoded data.

### Applying an Extended Attributes Blob

[`func apply(directory: FilePath, path: FilePath, flags: ArchiveFlags) throws`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/apply(directory:path:flags:))

Applies extended attributes to a filesystem object.

### Describing Extended Attributes

[`struct ExtendedAttribute`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/ExtendedAttribute)

A structure that describes the extended attributes of a filesystem.

### Collection Requirements

[`func append(ArchiveHeader.EntryXATBlob.ExtendedAttribute)`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/append(_:))

[`func remove(at: Int) -> ArchiveHeader.EntryXATBlob.ExtendedAttribute`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/remove(at:))

[`func removeAll()`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/removeAll())

[`func withAAEncodedData<R>((UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R`](/documentation/AppleArchive/ArchiveHeader/EntryXATBlob/withAAEncodedData(_:))

## Relationships

### Conforms To

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`Sequence`](/documentation/Swift/Sequence)

[`Escapable`](/documentation/Swift/Escapable)

[`Collection`](/documentation/Swift/Collection)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`Copyable`](/documentation/Swift/Copyable)

[`MutableCollection`](/documentation/Swift/MutableCollection)

---

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)