| 517 | |
| 518 | @property |
| 519 | def undo_entries(self) -> List['undo.UndoEntry']: |
| 520 | count = ctypes.c_ulonglong() |
| 521 | |
| 522 | entries = core.BNGetUndoEntries(self.handle, count) |
| 523 | assert entries is not None, "core.BNGetUndoEntries returned None" |
| 524 | |
| 525 | result = [] |
| 526 | try: |
| 527 | for i in range(0, count.value): |
| 528 | tag_handle = core.BNNewUndoEntryReference(entries[i]) |
| 529 | assert tag_handle is not None, "core.BNNewUndoEntryReference returned None" |
| 530 | result.append(undo.UndoEntry(tag_handle)) |
| 531 | return result |
| 532 | finally: |
| 533 | core.BNFreeUndoEntryList(entries, count.value) |
| 534 | |
| 535 | @property |
| 536 | def redo_entries(self) -> List['undo.UndoEntry']: |