4
4
namespace DotNetty . Buffers
5
5
{
6
6
using System ;
7
+ using System . Collections . Generic ;
7
8
using System . IO ;
8
9
using System . Text ;
9
10
using System . Threading ;
@@ -593,6 +594,156 @@ public override IByteBuffer GetBytes(int index, Stream destination, int length)
593
594
return base . GetBytes ( index , destination , length ) ;
594
595
}
595
596
597
+ public override CompositeByteBuffer AddComponent ( bool increaseWriterIndex , IByteBuffer buffer )
598
+ {
599
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
600
+ return base . AddComponent ( increaseWriterIndex , buffer ) ;
601
+ }
602
+
603
+ public override CompositeByteBuffer AddComponent ( bool increaseWriterIndex , int cIndex , IByteBuffer buffer )
604
+ {
605
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
606
+ return base . AddComponent ( increaseWriterIndex , cIndex , buffer ) ;
607
+ }
608
+
609
+ public override CompositeByteBuffer AddComponent ( IByteBuffer buffer )
610
+ {
611
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
612
+ return base . AddComponent ( buffer ) ;
613
+ }
614
+
615
+ public override CompositeByteBuffer AddComponent ( int cIndex , IByteBuffer buffer )
616
+ {
617
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
618
+ return base . AddComponent ( cIndex , buffer ) ;
619
+ }
620
+
621
+ public override CompositeByteBuffer AddComponents ( bool increaseWriterIndex , params IByteBuffer [ ] buffers )
622
+ {
623
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
624
+ return base . AddComponents ( increaseWriterIndex , buffers ) ;
625
+ }
626
+
627
+ public override CompositeByteBuffer AddComponents ( bool increaseWriterIndex , IEnumerable < IByteBuffer > buffers )
628
+ {
629
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
630
+ return base . AddComponents ( increaseWriterIndex , buffers ) ;
631
+ }
632
+
633
+ public override CompositeByteBuffer AddComponents ( IEnumerable < IByteBuffer > buffers )
634
+ {
635
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
636
+ return base . AddComponents ( buffers ) ;
637
+ }
638
+
639
+ public override CompositeByteBuffer AddComponents ( int cIndex , IEnumerable < IByteBuffer > buffers )
640
+ {
641
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
642
+ return base . AddComponents ( cIndex , buffers ) ;
643
+ }
644
+
645
+ public override CompositeByteBuffer AddComponents ( int cIndex , params IByteBuffer [ ] buffers )
646
+ {
647
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
648
+ return base . AddComponents ( cIndex , buffers ) ;
649
+ }
650
+
651
+ public override CompositeByteBuffer AddComponents ( params IByteBuffer [ ] buffers )
652
+ {
653
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
654
+ return base . AddComponents ( buffers ) ;
655
+ }
656
+
657
+ public override CompositeByteBuffer RemoveComponent ( int cIndex )
658
+ {
659
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
660
+ return base . RemoveComponent ( cIndex ) ;
661
+ }
662
+
663
+ public override CompositeByteBuffer RemoveComponents ( int cIndex , int numComponents )
664
+ {
665
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
666
+ return base . RemoveComponents ( cIndex , numComponents ) ;
667
+ }
668
+
669
+ public override CompositeByteBuffer Consolidate ( )
670
+ {
671
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
672
+ return base . Consolidate ( ) ;
673
+ }
674
+
675
+ public override CompositeByteBuffer Consolidate ( int cIndex , int numComponents )
676
+ {
677
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
678
+ return base . Consolidate ( cIndex , numComponents ) ;
679
+ }
680
+
681
+ public override CompositeByteBuffer DiscardReadComponents ( )
682
+ {
683
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
684
+ return base . DiscardReadComponents ( ) ;
685
+ }
686
+
687
+ public override IList < IByteBuffer > Decompose ( int offset , int length )
688
+ {
689
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
690
+ return base . Decompose ( offset , length ) ;
691
+ }
692
+
693
+ public override ICharSequence GetCharSequence ( int index , int length , Encoding encoding )
694
+ {
695
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
696
+ return base . GetCharSequence ( index , length , encoding ) ;
697
+ }
698
+
699
+ public override ICharSequence ReadCharSequence ( int length , Encoding encoding )
700
+ {
701
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
702
+ return base . ReadCharSequence ( length , encoding ) ;
703
+ }
704
+
705
+ public override int SetCharSequence ( int index , ICharSequence sequence , Encoding encoding )
706
+ {
707
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
708
+ return base . SetCharSequence ( index , sequence , encoding ) ;
709
+ }
710
+
711
+ public override int WriteCharSequence ( ICharSequence sequence , Encoding encoding )
712
+ {
713
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
714
+ return base . WriteCharSequence ( sequence , encoding ) ;
715
+ }
716
+
717
+ public override string GetString ( int index , int length , Encoding encoding )
718
+ {
719
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
720
+ return base . GetString ( index , length , encoding ) ;
721
+ }
722
+
723
+ public override string ReadString ( int length , Encoding encoding )
724
+ {
725
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
726
+ return base . ReadString ( length , encoding ) ;
727
+ }
728
+
729
+ public override int SetString ( int index , string value , Encoding encoding )
730
+ {
731
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
732
+ return base . SetString ( index , value , encoding ) ;
733
+ }
734
+
735
+ public override int WriteString ( string value , Encoding encoding )
736
+ {
737
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
738
+ return base . WriteString ( value , encoding ) ;
739
+ }
740
+
741
+ public override IEnumerator < IByteBuffer > GetEnumerator ( )
742
+ {
743
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
744
+ return base . GetEnumerator ( ) ;
745
+ }
746
+
596
747
public override IReferenceCounted Retain ( )
597
748
{
598
749
this . Leak . Record ( ) ;
@@ -605,6 +756,30 @@ public override IReferenceCounted Retain(int increment)
605
756
return base . Retain ( increment ) ;
606
757
}
607
758
759
+ public override IByteBuffer RetainedSlice ( )
760
+ {
761
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
762
+ return base . RetainedSlice ( ) ;
763
+ }
764
+
765
+ public override IByteBuffer RetainedSlice ( int index , int length )
766
+ {
767
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
768
+ return base . RetainedSlice ( index , length ) ;
769
+ }
770
+
771
+ public override IByteBuffer RetainedDuplicate ( )
772
+ {
773
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
774
+ return base . RetainedDuplicate ( ) ;
775
+ }
776
+
777
+ public override IByteBuffer ReadRetainedSlice ( int length )
778
+ {
779
+ RecordLeakNonRefCountingOperation ( this . Leak ) ;
780
+ return base . ReadRetainedSlice ( length ) ;
781
+ }
782
+
608
783
public override bool Release ( )
609
784
{
610
785
this . Leak . Record ( ) ;
0 commit comments