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

Method get_address_for_data_offset

python/binaryview.py:9554–9565  ·  view source on GitHub ↗

``get_address_for_data_offset`` returns the virtual address that maps to the specific file offset. :param int offset: file offset :return: the virtual address of the first segment that contains that file location :rtype: Int

(self, offset: int)

Source from the content-addressed store, hash-verified

9552 return Segment(seg)
9553
9554 def get_address_for_data_offset(self, offset: int) -> Optional[int]:
9555 """
9556 ``get_address_for_data_offset`` returns the virtual address that maps to the specific file offset.
9557
9558 :param int offset: file offset
9559 :return: the virtual address of the first segment that contains that file location
9560 :rtype: Int
9561 """
9562 address = ctypes.c_ulonglong()
9563 if not core.BNGetAddressForDataOffset(self.handle, offset, address):
9564 return None
9565 return address.value
9566
9567 def get_data_offset_for_address(self, address: int) -> Optional[int]:
9568 """

Callers 2

_set_current_raw_offsetFunction · 0.80
navigateToFileOffsetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected