def _sync_with_file(self):
        """Clear in-memory structures so table is synced with the file."""
        self._records = []
        i = -1
        for i, line in self._enum_lines():
            self._records.append(None)
        self._last_synced_index = i
Clear in-memory structures so table is synced with the file.