nw_framer_parse_input(_:_:_:_:_:)
Examines the content of input data while inside your input handler block.
Declaration
func nw_framer_parse_input(_ framer: nw_framer_t, _ minimum_incomplete_length: Int, _ maximum_length: Int, _ temp_buffer: UnsafeMutablePointer<UInt8>?, _ parse: (UnsafeMutablePointer<UInt8>?, Int, Bool) -> Int) -> BoolParameters
- framer:
A network framer instance.
- minimum_incomplete_length:
The minimum number of bytes that should be delivered to the parse completion.
- maximum_length:
The maximum number of bytes that should be delivered to the parse completion.
- temp_buffer:
An optional buffer into which the parser will copy bytes. Use this if you need to make guarantees about byte alignment.
- parse:
A completion handler that will be called inline to examine a region of bytes.
Return Value
Returns true if the requested length was available to parse, or false if the conditions could not be met.