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: Flush any queued up data in the write buffer and ensure the
  compression buffer is flushed out to the underlying transport
docstr_tok: ["Flush","any","queued","up","data","in","the","write","buffer","and","ensure","the","compression","buffer","is","flushed","out","to","the","underlying","transport"]
code: def flush(self):
      """Flush any queued up data in the write buffer and ensure the
      compression buffer is flushed out to the underlying transport
      """
      wout = self.__wbuf.getvalue()
      if len(wout) > 0:
          zbuf = self._zcomp_write.compress(wout)
          self.bytes_out += len(wout)
          self.bytes_out_comp += len(zbuf)
      else:
          zbuf = ""
      ztail = self._zcomp_write.flush(zlib.Z_SYNC_FLUSH)
      self.bytes_out_comp += len(ztail)
      if (len(zbuf) + len(ztail)) > 0:
          self.__wbuf = BufferIO()
          self.__trans.write(zbuf + ztail)
      self.__trans.flush()
  
imports: from __future__ import division
  import zlib
  from .TTransport import TTransportBase, CReadableTransport
  from ..compat import BufferIO
label_desc: Use image node_id 15 for calling the TZlibTransport obj's underlying member method code with example usage: obj.flush() without return types