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 readinto(self, b):
      with memoryview(b) as view, view.cast("B") as byte_view:
          data = self.read(len(byte_view))
          byte_view[: len(data)] = data
      return len(data)
  
file_path: cpython/Lib/_compression.py
imports: import io
  import sys
label_desc: Use image node_id 5 for calling the DecompressReader obj's underlying member method code with example usage: obj.readinto(b) and returns: len