class_docstr: Adapts the decompressor API to a RawIOBase reader API
class_docstr_tok: ["Adapts","the","decompressor","API","to","a","RawIOBase","reader","API"]
code: def readall(self):
      chunks = []
      # sys.maxsize means the max length of output buffer is unlimited,
      # so that the whole input buffer can be decompressed within one
      # .decompress() call.
      while data := self.read(sys.maxsize):
          chunks.append(data)
  
      return b"".join(chunks)
  
file_path: cpython/Lib/_compression.py
imports: import io
  import sys
label_desc: Use image node_id 7 for calling the DecompressReader obj's underlying member method code with example usage: obj.readall() and returns: bytes