MCPcopy Create free account
hub / github.com/dobin/SuperMega / PeRelocEntry

Class PeRelocEntry

model/defs.py:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41class PeRelocEntry():
42 def __init__(self, rva: int, base_rva: int, type: str):
43 self.rva: int = rva
44 self.base_rva: int = base_rva
45 self.offset: int = rva - base_rva
46 self.type: str = type
47
48
49 def __str__(self):
50 return "PeRelocEntry: rva: 0x{:X} base_rva: 0x{:X} offset: 0x{:X} type: {}".format(
51 self.rva, self.base_rva, self.offset, self.type)
52
53
54class IatEntry():

Callers 1

get_base_relocsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected