MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / getNewSectionVirtualAddress

Method getNewSectionVirtualAddress

src/pe.cpp:233–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233DWORD PE::getNewSectionVirtualAddress()
234{
235 // return the next section's "virtual address", which is actually its relative virtual address
236 return align
237 (
238 pSectionHeader[pNtHeader->FileHeader.NumberOfSections - 1].VirtualAddress + pSectionHeader[pNtHeader->FileHeader.NumberOfSections - 1].Misc.VirtualSize,
239 pNtHeader->OptionalHeader.SectionAlignment
240 );
241}
242
243DWORD PE::getNewSectionFileOffset()
244{

Callers

nothing calls this directly

Calls 1

alignFunction · 0.85

Tested by

no test coverage detected