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