<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchDataIterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "s:8Dispatch0A12DataIteratorV"
  },
  "title" : "DispatchDataIterator"
}
-->

# DispatchDataIterator

A byte-by-byte iterator over the contents of a dispatch data object.

```
struct DispatchDataIterator
```

## Topics

### Creating the Iterator

### Getting the Number of Elements

### Finding Elements

### Excluding Elements

### Transforming a Sequence

### Iterating Over a Sequence’s Elements

[`next()`](/documentation/Dispatch/DispatchDataIterator/next())

### Sorting Elements

### Splitting Elements

### Comparing Sequences

### Getting the Publisher

### Deprecated



---

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)