---
title: "parseInput(minimumIncompleteLength:maximumLength:parse:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwprotocolframer/instance/parseinput(minimumincompletelength:maximumlength:parse:)"
---

# parseInput(minimumIncompleteLength:maximumLength:parse:)

Examines the content of input data while in your input handler.

## Declaration

```swift
final func parseInput(minimumIncompleteLength: Int, maximumLength: Int, parse: (UnsafeMutableRawBufferPointer?, Bool) -> Int) -> Bool
```

## Parameters

- `minimumIncompleteLength`: The minimum number of bytes that should be delivered to the parse completion.
- `maximumLength`: The maximum number of bytes that should be delivered to the parse completion.
- `parse`: A completion handler that will be called inline to examine a region of bytes. This will contain the buffer that matches the constraints, and a boolean indicating if this buffer represents the end of a message.

## Return Value

Return Value Returns true if the requested length was available to parse, or false if the conditions could not be met.

## See Also

### Delivering Input

- [deliverInput(data:message:isComplete:)](network/nwprotocolframer/instance/deliverinput(data:message:iscomplete:).md)
- [deliverInputNoCopy(length:message:isComplete:)](network/nwprotocolframer/instance/deliverinputnocopy(length:message:iscomplete:).md)
- [passThroughInput()](network/nwprotocolframer/instance/passthroughinput().md)
