MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / find_next_data

Method find_next_data

python/binaryview.py:8884–8906  ·  view source on GitHub ↗

``find_next_data`` searches for the bytes ``data`` starting at the virtual address ``start`` until the end of the BinaryView. :param int start: virtual address to start searching from. :param Union[bytes, bytearray, str] data: data to search for :param FindFlag flags: (optional) defaults t

(self, start: int, data: bytes, flags: FindFlag = FindFlag.FindCaseSensitive)

Source from the content-addressed store, hash-verified

8882 return platform, name
8883
8884 def find_next_data(self, start: int, data: bytes, flags: FindFlag = FindFlag.FindCaseSensitive) -> Optional[int]:
8885 """
8886 ``find_next_data`` searches for the bytes ``data`` starting at the virtual address ``start`` until the end of the BinaryView.
8887
8888 :param int start: virtual address to start searching from.
8889 :param Union[bytes, bytearray, str] data: data to search for
8890 :param FindFlag flags: (optional) defaults to case-insensitive data search
8891
8892 ==================== ============================
8893 FindFlag Description
8894 ==================== ============================
8895 FindCaseSensitive Case-sensitive search
8896 FindCaseInsensitive Case-insensitive search
8897 ==================== ============================
8898 """
8899 if not isinstance(data, bytes):
8900 raise TypeError("Must be bytes, bytearray, or str")
8901 else:
8902 buf = databuffer.DataBuffer(data)
8903 result = ctypes.c_ulonglong()
8904 if not core.BNFindNextData(self.handle, start, buf.handle, result, flags):
8905 return None
8906 return result.value
8907
8908 def find_next_text(
8909 self, start: int, text: str, settings: Optional[_function.DisassemblySettings] = None,

Callers

nothing calls this directly

Calls 1

DataBufferMethod · 0.80

Tested by

no test coverage detected