def METHOD_NAME(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)