Class PeUtils

java.lang.Object
ghidra.app.util.bin.format.pe.PeUtils

public class PeUtils extends Object
  • Constructor Details

    • PeUtils

      public PeUtils()
  • Method Details

    • getMarkupAddress

      public static Address getMarkupAddress(Program program, boolean isBinary, NTHeader ntHeader, int offset)
    • createData

      public static Data createData(Program program, Address addr, DataType datatype, MessageLog log)
    • 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 align
      alignment - 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 align
      alignment - the alignment value
      Returns:
      the given value rounded down to the nearest given alignment