MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / commit_undo_actions

Method commit_undo_actions

python/binaryview.py:4302–4325  ·  view source on GitHub ↗

``commit_undo_actions`` commits the actions taken since a call to :py:func:`begin_undo_actions` Pass as `id` the value returned by :py:func:`begin_undo_actions`. Empty values of `id` will commit all changes since the last call to :py:func:`begin_undo_actions`. :param Optional[str] id: id o

(self, id: Optional[str] = None)

Source from the content-addressed store, hash-verified

4300 return self._file.begin_undo_actions(anonymous_allowed)
4301
4302 def commit_undo_actions(self, id: Optional[str] = None) -> None:
4303 """
4304 ``commit_undo_actions`` commits the actions taken since a call to :py:func:`begin_undo_actions`
4305 Pass as `id` the value returned by :py:func:`begin_undo_actions`. Empty values of
4306 `id` will commit all changes since the last call to :py:func:`begin_undo_actions`.
4307
4308 :param Optional[str] id: id of undo state, from :py:func:`begin_undo_actions`
4309 :rtype: None
4310 :Example:
4311
4312 >>> bv.get_disassembly(0x100012f1)
4313 'xor eax, eax'
4314 >>> state = bv.begin_undo_actions()
4315 >>> bv.convert_to_nop(0x100012f1)
4316 True
4317 >>> bv.commit_undo_actions(state)
4318 >>> bv.get_disassembly(0x100012f1)
4319 'nop'
4320 >>> bv.undo()
4321 >>> bv.get_disassembly(0x100012f1)
4322 'xor eax, eax'
4323 >>>
4324 """
4325 self._file.commit_undo_actions(id)
4326
4327 def forget_undo_actions(self, id: Optional[str] = None) -> None:
4328 """

Callers 3

actionMethod · 0.45
insert_workflowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected