diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-07-30 02:10:43 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-07-30 02:10:43 -0400 |
| commit | fc63dfdd3487a5d296087cbe2b898eb22e67d3aa (patch) | |
| tree | 3620a9c47b460f99e2de519d01152ede217a9529 /python/__init__.py | |
| parent | 038d192dfb3f73a268447d890cccf27926d35941 (diff) | |
Add API to find data in a binary view
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 7 |
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) |
