diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2023-10-18 18:08:16 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2023-10-18 18:08:16 -0400 |
| commit | 4a11c2391b74238247d74cd10d58d5deaf630770 (patch) | |
| tree | 0ee2253947388cd498c2c963ff3d8545f0d091a3 /python/binaryview.py | |
| parent | 94bc76eda5deb7af75a875f1090ce1dd72ca5071 (diff) | |
add rebase API example
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 8a439ce2..3c33ccfe 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -7941,6 +7941,14 @@ class BinaryView: :param bool force: enable rebasing while the UI is active :return: the new :py:class:`BinaryView` object or ``None`` on failure :rtype: :py:class:`BinaryView` or ``None`` + :Example: + >>> from binaryninja import load + >>> bv = load('/bin/ls') + >>> print(bv) + <BinaryView: '/bin/ls', start 0x100000000, len 0x182f8> + >>> newbv = bv.rebase(0x400000) + >>> print(newbv) + <BinaryView: '/bin/ls', start 0x400000, len 0x182f8> """ result = False if core.BNIsUIEnabled() and not force: |
