@@ -51,6 +51,8 @@ using v8::Value;
51
51
class GetAddrInfoReqWrap : public ReqWrap <uv_getaddrinfo_t > {
52
52
public:
53
53
GetAddrInfoReqWrap (Environment* env, Local<Object> req_wrap_obj);
54
+
55
+ size_t self_size () const override { return sizeof (*this ); }
54
56
};
55
57
56
58
GetAddrInfoReqWrap::GetAddrInfoReqWrap (Environment* env,
@@ -66,8 +68,10 @@ static void NewGetAddrInfoReqWrap(const FunctionCallbackInfo<Value>& args) {
66
68
67
69
68
70
class GetNameInfoReqWrap : public ReqWrap <uv_getnameinfo_t > {
69
- public:
70
- GetNameInfoReqWrap (Environment* env, Local<Object> req_wrap_obj);
71
+ public:
72
+ GetNameInfoReqWrap (Environment* env, Local<Object> req_wrap_obj);
73
+
74
+ size_t self_size () const override { return sizeof (*this ); }
71
75
};
72
76
73
77
GetNameInfoReqWrap::GetNameInfoReqWrap (Environment* env,
@@ -385,6 +389,8 @@ class QueryAWrap: public QueryWrap {
385
389
return 0 ;
386
390
}
387
391
392
+ size_t self_size () const override { return sizeof (*this ); }
393
+
388
394
protected:
389
395
void Parse (unsigned char * buf, int len) override {
390
396
HandleScope handle_scope (env ()->isolate ());
@@ -422,6 +428,8 @@ class QueryAaaaWrap: public QueryWrap {
422
428
return 0 ;
423
429
}
424
430
431
+ size_t self_size () const override { return sizeof (*this ); }
432
+
425
433
protected:
426
434
void Parse (unsigned char * buf, int len) override {
427
435
HandleScope handle_scope (env ()->isolate ());
@@ -459,6 +467,8 @@ class QueryCnameWrap: public QueryWrap {
459
467
return 0 ;
460
468
}
461
469
470
+ size_t self_size () const override { return sizeof (*this ); }
471
+
462
472
protected:
463
473
void Parse (unsigned char * buf, int len) override {
464
474
HandleScope handle_scope (env ()->isolate ());
@@ -498,6 +508,8 @@ class QueryMxWrap: public QueryWrap {
498
508
return 0 ;
499
509
}
500
510
511
+ size_t self_size () const override { return sizeof (*this ); }
512
+
501
513
protected:
502
514
void Parse (unsigned char * buf, int len) override {
503
515
HandleScope handle_scope (env ()->isolate ());
@@ -547,6 +559,8 @@ class QueryNsWrap: public QueryWrap {
547
559
return 0 ;
548
560
}
549
561
562
+ size_t self_size () const override { return sizeof (*this ); }
563
+
550
564
protected:
551
565
void Parse (unsigned char * buf, int len) override {
552
566
HandleScope handle_scope (env ()->isolate ());
@@ -583,6 +597,8 @@ class QueryTxtWrap: public QueryWrap {
583
597
return 0 ;
584
598
}
585
599
600
+ size_t self_size () const override { return sizeof (*this ); }
601
+
586
602
protected:
587
603
void Parse (unsigned char * buf, int len) override {
588
604
HandleScope handle_scope (env ()->isolate ());
@@ -638,6 +654,8 @@ class QuerySrvWrap: public QueryWrap {
638
654
return 0 ;
639
655
}
640
656
657
+ size_t self_size () const override { return sizeof (*this ); }
658
+
641
659
protected:
642
660
void Parse (unsigned char * buf, int len) override {
643
661
HandleScope handle_scope (env ()->isolate ());
@@ -692,6 +710,8 @@ class QueryNaptrWrap: public QueryWrap {
692
710
return 0 ;
693
711
}
694
712
713
+ size_t self_size () const override { return sizeof (*this ); }
714
+
695
715
protected:
696
716
void Parse (unsigned char * buf, int len) override {
697
717
HandleScope handle_scope (env ()->isolate ());
@@ -754,6 +774,8 @@ class QuerySoaWrap: public QueryWrap {
754
774
return 0 ;
755
775
}
756
776
777
+ size_t self_size () const override { return sizeof (*this ); }
778
+
757
779
protected:
758
780
void Parse (unsigned char * buf, int len) override {
759
781
HandleScope handle_scope (env ()->isolate ());
@@ -820,6 +842,8 @@ class GetHostByAddrWrap: public QueryWrap {
820
842
return 0 ;
821
843
}
822
844
845
+ size_t self_size () const override { return sizeof (*this ); }
846
+
823
847
protected:
824
848
void Parse (struct hostent * host) override {
825
849
HandleScope handle_scope (env ()->isolate ());
0 commit comments