def METHOD_NAME(self) -> bytes:
    self.reset()
    if DEBUG:
        print("Generic NRL compressor start...")
    while self.cursor < self.length_input:
        self._process()
    return self.compressed_data[: self.bytes_written]