---
title: nw_framer_parse_completion_t
framework: network
role: symbol
role_heading: Type Alias
path: network/nw_framer_parse_completion_t
---

# nw_framer_parse_completion_t

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

## Declaration

```swift
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 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(_:_:_:_:_:) and nw_framer_deliver_input_no_copy(_:_:_:_:) for input data, or nw_framer_parse_output(_:_:_:_:_:) and nw_framer_write_output_no_copy(_:_:) for output messages.

## See Also

### Handling Output Data

- [nw_framer_set_output_handler(_:_:)](network/nw_framer_set_output_handler(_:_:).md)
- [nw_framer_output_handler_t](network/nw_framer_output_handler_t.md)
- [nw_framer_parse_output(_:_:_:_:_:)](network/nw_framer_parse_output(_:_:_:_:_:).md)
- [nw_framer_write_output(_:_:_:)](network/nw_framer_write_output(_:_:_:).md)
- [nw_framer_write_output_data(_:_:)](network/nw_framer_write_output_data(_:_:).md)
- [nw_framer_write_output_no_copy(_:_:)](network/nw_framer_write_output_no_copy(_:_:).md)
- [nw_framer_pass_through_output(_:)](network/nw_framer_pass_through_output(_:).md)
