<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEFilterDataVerdict/init(passBytes:peekBytes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEFilterDataVerdict(cm)dataVerdictWithPassBytes:peekBytes:"
  },
  "title" : "init(passBytes:peekBytes:)"
}
-->

# init(passBytes:peekBytes:)

Creates a verdict that tells the system to pass a chunk of network data to its final destination, and specifies the next chunk of data to provide.

```
init(passBytes: Int, peekBytes: Int)
```

## Parameters

`passBytes`

The number of bytes to pass to its final destination.

`peekBytes`

The number of bytes after the end of the `passBytes` that the Filter Data Provider expects in the next call to [`handleOutboundData(from:readBytesStartOffset:readBytes:)`](/documentation/NetworkExtension/NEFilterDataProvider/handleOutboundData(from:readBytesStartOffset:readBytes:)) or [`handleInboundData(from:readBytesStartOffset:readBytes:)`](/documentation/NetworkExtension/NEFilterDataProvider/handleInboundData(from:readBytesStartOffset:readBytes:)). The Filter Data Provider uses this chunk of data to make its next filtering decision.

    To see all subsequent bytes, set this parameter to [`NEFilterFlowBytesMax`](/documentation/NetworkExtension/NEFilterFlowBytesMax)    .

## Return Value

A `NEFilterDataVerdict` object.

---

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)