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: Read compressed data from the underlying transport, then
  decompress it and append it to the internal StringIO read buffer
docstr_tok: ["Read","compressed","data","from","the","underlying","transport",",","then","decompress","it","and","append","it","to","the","internal","StringIO","read","buffer"]
code: def readComp(self, sz):
      """Read compressed data from the underlying transport, then
      decompress it and append it to the internal StringIO read buffer
      """
      zbuf = self.__trans.read(sz)
      zbuf = self._zcomp_read.unconsumed_tail + zbuf
      buf = self._zcomp_read.decompress(zbuf)
      self.bytes_in += len(zbuf)
      self.bytes_in_comp += len(buf)
      old = self.__rbuf.read()
      self.__rbuf = BufferIO(old + buf)
      if len(old) + len(buf) == 0:
          return False
      return True
  
imports: from __future__ import division
  import zlib
  from .TTransport import TTransportBase, CReadableTransport
  from ..compat import BufferIO
label_desc: Use image node_id 13 for calling the TZlibTransport obj's underlying member method code with example usage: obj.readComp(sz) and returns: True, False