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