<!--
{
  "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/Field",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Apple Archive",
      "AppleArchive"
    ],
    "preciseIdentifier" : "s:12AppleArchive0B6HeaderC5FieldO"
  },
  "title" : "ArchiveHeader.Field"
}
-->

# ArchiveHeader.Field

An enumeration that describes the type, key, and value of a header field.

```
enum Field
```

## Topics

### Field Constants

[`case blob(key: ArchiveHeader.FieldKey, size: UInt64, offset: UInt64)`](/documentation/AppleArchive/ArchiveHeader/Field/blob(key:size:offset:))

An enumeration that indicates the field is a data blob.

[`case flag(key: ArchiveHeader.FieldKey)`](/documentation/AppleArchive/ArchiveHeader/Field/flag(key:))

An enumeration that indicates the field is a flag.

[`case hash(key: ArchiveHeader.FieldKey, hashFunction: ArchiveHash, value: ContiguousArray<UInt8>)`](/documentation/AppleArchive/ArchiveHeader/Field/hash(key:hashFunction:value:))

An enumeration that indicates the field is a hash.

[`case string(key: ArchiveHeader.FieldKey, value: String)`](/documentation/AppleArchive/ArchiveHeader/Field/string(key:value:))

An enumeration that indicates the field is a string.

[`case timespec(key: ArchiveHeader.FieldKey, value: timespec)`](/documentation/AppleArchive/ArchiveHeader/Field/timespec(key:value:))

An enumeration that indicates the field is a time value.

[`case uint(key: ArchiveHeader.FieldKey, value: UInt64)`](/documentation/AppleArchive/ArchiveHeader/Field/uint(key:value:))

An enumeration that indicates the field is an unsigned integer.

### Instance Properties

[`var key: ArchiveHeader.FieldKey`](/documentation/AppleArchive/ArchiveHeader/Field/key)

The field key of this field.

[`var type: ArchiveHeader.FieldType`](/documentation/AppleArchive/ArchiveHeader/Field/type)

The field type of this field.



---

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)