MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_offset_from_rva

Method get_offset_from_rva

pythonmemorymodule/pefile.py:1239–1240  ·  view source on GitHub ↗
(self, rva)

Source from the content-addressed store, hash-verified

1237 return offset - self.get_PointerToRawData_adj() + self.get_VirtualAddress_adj()
1238
1239 def get_offset_from_rva(self, rva):
1240 return rva - self.get_VirtualAddress_adj() + self.get_PointerToRawData_adj()
1241
1242 def contains_offset(self, offset):
1243 """Check whether the section contains the file offset provided."""

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected