``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)
| 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 | """ |
no test coverage detected