``begin_undo_actions`` starts recording actions taken so they can be undone at some point. :param bool anonymous_allowed: Legacy interop: prevent empty calls to :py:func:`commit_undo_actions`` from affecting this undo state. Specifically for :py:func:`undoable_
(self, anonymous_allowed: bool = True)
| 4275 | return self._file.undoable_transaction() |
| 4276 | |
| 4277 | def begin_undo_actions(self, anonymous_allowed: bool = True) -> str: |
| 4278 | """ |
| 4279 | ``begin_undo_actions`` starts recording actions taken so they can be undone at some point. |
| 4280 | |
| 4281 | :param bool anonymous_allowed: Legacy interop: prevent empty calls to :py:func:`commit_undo_actions`` from |
| 4282 | affecting this undo state. Specifically for :py:func:`undoable_transaction`` |
| 4283 | :return: Id of undo state, for passing to :py:func:`commit_undo_actions`` or :py:func:`revert_undo_actions`. |
| 4284 | :rtype: str |
| 4285 | :Example: |
| 4286 | |
| 4287 | >>> bv.get_disassembly(0x100012f1) |
| 4288 | 'xor eax, eax' |
| 4289 | >>> state = bv.begin_undo_actions() |
| 4290 | >>> bv.convert_to_nop(0x100012f1) |
| 4291 | True |
| 4292 | >>> bv.commit_undo_actions(state) |
| 4293 | >>> bv.get_disassembly(0x100012f1) |
| 4294 | 'nop' |
| 4295 | >>> bv.undo() |
| 4296 | >>> bv.get_disassembly(0x100012f1) |
| 4297 | 'xor eax, eax' |
| 4298 | >>> |
| 4299 | """ |
| 4300 | return self._file.begin_undo_actions(anonymous_allowed) |
| 4301 | |
| 4302 | def commit_undo_actions(self, id: Optional[str] = None) -> None: |
| 4303 | """ |
no outgoing calls
no test coverage detected