``get_segment_at`` gets the Segment a given virtual address is located in :param addr: A virtual address :return: The segment, if it was found
(self, addr: int)
| 9540 | core.BNRemoveUserSegment(self.handle, start, length) |
| 9541 | |
| 9542 | def get_segment_at(self, addr: int) -> Optional[Segment]: |
| 9543 | """ |
| 9544 | ``get_segment_at`` gets the Segment a given virtual address is located in |
| 9545 | |
| 9546 | :param addr: A virtual address |
| 9547 | :return: The segment, if it was found |
| 9548 | """ |
| 9549 | seg = core.BNGetSegmentAt(self.handle, addr) |
| 9550 | if not seg: |
| 9551 | return None |
| 9552 | return Segment(seg) |
| 9553 | |
| 9554 | def get_address_for_data_offset(self, offset: int) -> Optional[int]: |
| 9555 | """ |
no test coverage detected