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 {
1414 inner : crate :: codec:: FlateEncoder :: new ( level, false ) ,
1515 }
1616 }
17+
18+ pub ( crate ) fn get_ref ( & self ) -> & crate :: codec:: FlateEncoder {
19+ & self . inner
20+ }
1721}
1822
1923impl Encode for DeflateEncoder {
Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ macro_rules! algos {
9898 ) ,
9999 }
100100 }
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+ }
101111 }
102112 { @dec }
103113 ) ;
You can’t perform that action at this time.
0 commit comments