summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-07-30 02:25:10 -0400
committerJordan Wiens <jordan@psifertex.com>2016-07-30 02:25:10 -0400
commitadbf9fa033926defe2f93200c934b41b237b1849 (patch)
tree8837870f4c66fe865bb30b5b28d7e34ea49f8cf7 /python
parenteed668c21a4ab53fb0459b90d0afd235003acf7b (diff)
parentfc63dfdd3487a5d296087cbe2b898eb22e67d3aa (diff)
Merge branch 'dev' of github.com:Vector35/binaryninja-api into dev
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)