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

Function align

src/util.cpp:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12DWORD align(DWORD x, DWORD alignment) { return (x + alignment - 1) & ~(alignment - 1); }
13
14DWORD rvaToFileOffset(DWORD rva, DWORD virtualAddress, DWORD pointerToRawData) { return (rva - virtualAddress) + pointerToRawData; }
15

Callers 3

addSectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected