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

Method get_segment_at

python/binaryview.py:9542–9552  ·  view source on GitHub ↗

``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)

Source from the content-addressed store, hash-verified

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 """

Callers 3

_get_current_segmentFunction · 0.80
make_codeFunction · 0.80

Calls 1

SegmentClass · 0.70

Tested by

no test coverage detected