Class PeUtils
java.lang.Object
ghidra.app.util.bin.format.pe.PeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intalignDown(int value, int alignment) Returns the given value rounded down to the nearest given alignment.static intalignUp(int value, int alignment) Returns the given value rounded up to the nearest given alignment.static voidcreateData(Program program, Address addr, DataType datatype, int datatypeLength, MessageLog log) static DatacreateData(Program program, Address addr, DataType datatype, MessageLog log) static AddressgetMarkupAddress(Program program, boolean isBinary, NTHeader ntHeader, int offset)
-
Constructor Details
-
PeUtils
public PeUtils()
-
-
Method Details
-
getMarkupAddress
-
createData
-
createData
public static void createData(Program program, Address addr, DataType datatype, int datatypeLength, MessageLog log) -
alignUp
public static int alignUp(int value, int alignment) Returns the given value rounded up to the nearest given alignment.- Parameters:
value- the value to alignalignment- the alignment value- Returns:
- the given value rounded up to the nearest given alignment
-
alignDown
public static int alignDown(int value, int alignment) Returns the given value rounded down to the nearest given alignment.- Parameters:
value- the value to alignalignment- the alignment value- Returns:
- the given value rounded down to the nearest given alignment
-