File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ impl DeflateEncoder {
14
14
inner : crate :: codec:: FlateEncoder :: new ( level, false ) ,
15
15
}
16
16
}
17
+
18
+ pub ( crate ) fn get_ref ( & self ) -> & crate :: codec:: FlateEncoder {
19
+ & self . inner
20
+ }
17
21
}
18
22
19
23
impl Encode for DeflateEncoder {
Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ macro_rules! algos {
98
98
) ,
99
99
}
100
100
}
101
+
102
+ /// Returns the total number of input bytes which have been processed by this compression object.
103
+ pub fn total_in( & self ) -> u64 {
104
+ self . inner. get_encoder_ref( ) . get_ref( ) . get_ref( ) . total_in( )
105
+ }
106
+
107
+ /// Returns the total number of output bytes which have been produced by this compression object.
108
+ pub fn total_out( & self ) -> u64 {
109
+ self . inner. get_encoder_ref( ) . get_ref( ) . get_ref( ) . total_out( )
110
+ }
101
111
}
102
112
{ @dec }
103
113
) ;
You can’t perform that action at this time.
0 commit comments