nw_framer_parse_completion_t
A handler that examines a range of data being sent or received.
Declaration
typealias nw_framer_parse_completion_t = (UnsafeMutablePointer<UInt8>?, Int, Bool) -> IntParameters
- 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(_:_:_:_:_:) 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.