<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_framer_parse_completion_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_framer_parse_completion_t"
  },
  "title" : "nw_framer_parse_completion_t"
}
-->

# nw_framer_parse_completion_t

A handler that examines a range of data being sent or received.

```
typealias nw_framer_parse_completion_t = (UnsafeMutablePointer<UInt8>?, Int, Bool) -> Int
```

## Parameters

`buffer`

The pointer to bytes to parse.

`buffer_length`

The length of the buffer.

`is_complete`

A boolean indicating if this span of bytes represents the end of a message.

## Return Value

Return the number of bytes by which to increment the input or output cursor. Once the cursor is moved, previous bytes will no longer be delivered to [`nw_framer_parse_input(_:_:_:_:_:)`](/documentation/Network/nw_framer_parse_input(_:_:_:_:_:)) and [`nw_framer_deliver_input_no_copy(_:_:_:_:)`](/documentation/Network/nw_framer_deliver_input_no_copy(_:_:_:_:)) for input data, or [`nw_framer_parse_output(_:_:_:_:_:)`](/documentation/Network/nw_framer_parse_output(_:_:_:_:_:)) and [`nw_framer_write_output_no_copy(_:_:)`](/documentation/Network/nw_framer_write_output_no_copy(_:_:)) for output messages.

## Discussion

---

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)