summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 100d01d8..5d78a569 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -1782,6 +1782,13 @@ class BinaryView(object):
def undefine_user_type(self, name):
core.BNUndefineUserAnalysisType(self.handle, name)
+ def find_next_data(self, start, data, flags = 0):
+ buf = DataBuffer(str(data))
+ result = ctypes.c_ulonglong()
+ if not core.BNFindNextData(self.handle, start, buf.handle, result, flags):
+ return None
+ return result.value
+
def __setattr__(self, name, value):
try:
object.__setattr__(self,name,value)