Lines Matching defs:args
200 static void New(const FunctionCallbackInfo<Value>& args);
202 static void All(const FunctionCallbackInfo<Value>& args);
204 static void Idle(const FunctionCallbackInfo<Value>& args);
206 static void Active(const FunctionCallbackInfo<Value>& args);
208 static void Expired(const FunctionCallbackInfo<Value>& args);
548 static void New(const FunctionCallbackInfo<Value>& args) {
549 BindingData* binding_data = Realm::GetBindingData<BindingData>(args);
550 new Parser(binding_data, args.This());
554 static void Close(const FunctionCallbackInfo<Value>& args) {
556 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
562 static void Free(const FunctionCallbackInfo<Value>& args) {
564 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
572 static void Remove(const FunctionCallbackInfo<Value>& args) {
574 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
596 static void Execute(const FunctionCallbackInfo<Value>& args) {
598 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
600 ArrayBufferViewContents<char> buffer(args[0]);
605 args.GetReturnValue().Set(ret);
609 static void Finish(const FunctionCallbackInfo<Value>& args) {
611 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
616 args.GetReturnValue().Set(ret);
620 static void Initialize(const FunctionCallbackInfo<Value>& args) {
621 Environment* env = Environment::GetCurrent(args);
627 CHECK(args[0]->IsInt32());
628 CHECK(args[1]->IsObject());
630 if (args.Length() > 2) {
631 CHECK(args[2]->IsNumber());
633 static_cast<uint64_t>(args[2].As<Number>()->Value());
639 if (args.Length() > 3) {
640 CHECK(args[3]->IsInt32());
641 lenient_flags = args[3].As<Int32>()->Value();
644 if (args.Length() > 4 && !args[4]->IsNullOrUndefined()) {
645 CHECK(args[4]->IsObject());
646 ASSIGN_OR_RETURN_UNWRAP(&connectionsList, args[4]);
650 static_cast<llhttp_type_t>(args[0].As<Int32>()->Value());
654 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
664 parser->AsyncReset(args[1].As<Object>());
685 static void Pause(const FunctionCallbackInfo<Value>& args) {
686 Environment* env = Environment::GetCurrent(args);
688 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
700 static void Consume(const FunctionCallbackInfo<Value>& args) {
702 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
703 CHECK(args[0]->IsObject());
704 StreamBase* stream = StreamBase::FromObject(args[0].As<Object>());
710 static void Unconsume(const FunctionCallbackInfo<Value>& args) {
712 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
722 static void GetCurrentBuffer(const FunctionCallbackInfo<Value>& args) {
724 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
731 args.GetReturnValue().Set(ret);
734 static void Duration(const FunctionCallbackInfo<Value>& args) {
736 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
739 args.GetReturnValue().Set(0);
744 args.GetReturnValue().Set(duration);
747 static void HeadersCompleted(const FunctionCallbackInfo<Value>& args) {
749 ASSIGN_OR_RETURN_UNWRAP(&parser, args.Holder());
751 args.GetReturnValue().Set(parser->headers_completed_);
1017 static int Raw(llhttp_t* p, Args ... args) {
1019 int rv = (parser->*Member)(std::forward<Args>(args)...);
1047 void ConnectionsList::New(const FunctionCallbackInfo<Value>& args) {
1048 Local<Context> context = args.GetIsolate()->GetCurrentContext();
1051 new ConnectionsList(env, args.This());
1054 void ConnectionsList::All(const FunctionCallbackInfo<Value>& args) {
1055 Isolate* isolate = args.GetIsolate();
1059 ASSIGN_OR_RETURN_UNWRAP(&list, args.Holder());
1067 return args.GetReturnValue().Set(
1071 void ConnectionsList::Idle(const FunctionCallbackInfo<Value>& args) {
1072 Isolate* isolate = args.GetIsolate();
1076 ASSIGN_OR_RETURN_UNWRAP(&list, args.Holder());
1086 return args.GetReturnValue().Set(
1090 void ConnectionsList::Active(const FunctionCallbackInfo<Value>& args) {
1091 Isolate* isolate = args.GetIsolate();
1095 ASSIGN_OR_RETURN_UNWRAP(&list, args.Holder());
1103 return args.GetReturnValue().Set(
1107 void ConnectionsList::Expired(const FunctionCallbackInfo<Value>& args) {
1108 Isolate* isolate = args.GetIsolate();
1112 ASSIGN_OR_RETURN_UNWRAP(&list, args.Holder());
1113 CHECK(args[0]->IsNumber());
1114 CHECK(args[1]->IsNumber());
1116 static_cast<uint64_t>(args[0].As<Uint32>()->Value()) * 1000000;
1118 static_cast<uint64_t>(args[1].As<Uint32>()->Value()) * 1000000;
1121 return args.GetReturnValue().Set(Array::New(isolate, 0));
1140 return args.GetReturnValue().Set(Array::New(isolate, 0));
1166 return args.GetReturnValue().Set(