class_docstr: Class that wraps a transport with zlib, compressing writes
  and decompresses reads, using the python standard
  library zlib module.
class_docstr_tok: ["Class","that","wraps","a","transport","with","zlib",",","compressing","writes","and","decompresses","reads",",","using","the","python","standard","library","zlib","module","."]
docstr: Get the current count of saved bytes due to data
  compression.
  
  Returns a tuple of:
  (inbound_saved_bytes, outbound_saved_bytes)
  
  Note: if compression is actually expanding your
  data (only likely with very tiny thrift objects), then
  the values returned will be negative.
docstr_tok: ["Get","the","current","count","of","saved","bytes","due","to","data","compression",".","Returns","a","tuple","of",":","(","inbound_saved_bytes",",","outbound_saved_bytes",")","Note",":","if","compression","is","actually","expanding","your","data","(","only","likely","with","very","tiny","thrift","objects",")",",","then","the","values","returned","will","be","negative","."]
code: def getCompSavings(self):
      """Get the current count of saved bytes due to data
      compression.
  
      Returns a tuple of:
      (inbound_saved_bytes, outbound_saved_bytes)
  
      Note: if compression is actually expanding your
      data (only likely with very tiny thrift objects), then
      the values returned will be negative.
      """
      r_saved = self.bytes_in - self.bytes_in_comp
      w_saved = self.bytes_out - self.bytes_out_comp
      return (r_saved, w_saved)
  
imports: from __future__ import division
  import zlib
  from .TTransport import TTransportBase, CReadableTransport
  from ..compat import BufferIO
label_desc: Use image node_id 6 for calling the TZlibTransport obj's underlying member method code with example usage: obj.getCompSavings() and returns: r_saved,  w_saved