def METHOD_NAME(self):
    if self._buffer:
        self._encoded = np.concatenate(
            [self._encoded, np.array(self._buffer, dtype=ENCODING_DTYPE)], axis=0
        )
        self._buffer = []