http_parser_execute function

  1. @Native<Size Function(Pointer<http_parser>, Pointer<http_parser_settings>, Pointer<Char>, Size)>(ffi.Pointer<http_parser>, ffi.Pointer<http_parser_settings>, ffi.Pointer<ffi.Char>, ffi.Size)>()
int http_parser_execute(
  1. Pointer<http_parser> parser,
  2. Pointer<http_parser_settings> settings,
  3. Pointer<Char> data,
  4. int len,
)

Executes the parser. Returns number of parsed bytes. Sets parser->http_errno on error.

Implementation

@ffi.Native<
  ffi.Size Function(
    ffi.Pointer<http_parser>,
    ffi.Pointer<http_parser_settings>,
    ffi.Pointer<ffi.Char>,
    ffi.Size,
  )
>()
external int http_parser_execute(
  ffi.Pointer<http_parser> parser,
  ffi.Pointer<http_parser_settings> settings,
  ffi.Pointer<ffi.Char> data,
  int len,
);