From 4a11c2391b74238247d74cd10d58d5deaf630770 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 18 Oct 2023 18:08:16 -0400 Subject: add rebase API example --- python/binaryview.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') 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) + + >>> newbv = bv.rebase(0x400000) + >>> print(newbv) + """ result = False if core.BNIsUIEnabled() and not force: -- cgit v1.3.1