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

Method perform_get_next_valid_offset

python/binaryview.py:4113–4129  ·  view source on GitHub ↗

``perform_get_next_valid_offset`` implements a query for the next valid readable, writable, or executable virtual memory address. .. note:: This method **may** be overridden by custom BinaryViews. Use :py:func:`add_auto_segment` to provide \ data without overriding this method. .. warni

(self, addr: int)

Source from the content-addressed store, hash-verified

4111 return self.is_valid_offset(addr)
4112
4113 def perform_get_next_valid_offset(self, addr: int) -> int:
4114 """
4115 ``perform_get_next_valid_offset`` implements a query for the next valid readable, writable, or executable virtual
4116 memory address.
4117
4118 .. note:: This method **may** be overridden by custom BinaryViews. Use :py:func:`add_auto_segment` to provide \
4119 data without overriding this method.
4120
4121 .. warning:: This method **must not** be called directly.
4122
4123 :param int addr: a virtual address to start checking from.
4124 :return: the next readable, writable, or executable virtual memory address
4125 :rtype: int
4126 """
4127 if addr < self.perform_get_start():
4128 return self.perform_get_start()
4129 return addr
4130
4131 def perform_get_start(self) -> int:
4132 """

Callers 1

Calls 1

perform_get_startMethod · 0.95

Tested by

no test coverage detected