summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 2f190375..f9afe2b8 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -4926,7 +4926,7 @@ class BinaryView:
def is_valid_offset(self, addr: int) -> bool:
"""
- ``is_valid_offset`` checks if a virtual address ``addr`` is valid .
+ ``is_valid_offset`` checks if a virtual address ``addr`` is valid.
:param int addr: a virtual address to be checked
:return: True if the virtual address is valid, False if the virtual address is invalid or error
@@ -4934,6 +4934,16 @@ class BinaryView:
"""
return core.BNIsValidOffset(self.handle, addr)
+ def is_offset_backed_by_file(self, addr: int) -> bool:
+ """
+ ``is_offset_backed_by_file`` checks if a virtual address ``addr`` is backed by the original file.
+
+ :param int addr: a virtual address to be checked
+ :return: True if the virtual address is backed by original file, False if the not backed by original file or error
+ :rtype: bool
+ """
+ return core.BNIsOffsetBackedByFile(self.handle, addr)
+
def is_offset_readable(self, addr: int) -> bool:
"""
``is_offset_readable`` checks if a virtual address ``addr`` is valid for reading.