Enum Class DvrtType

java.lang.Object
java.lang.Enum<DvrtType>
ghidra.app.util.bin.format.pe.dvrt.DvrtType
All Implemented Interfaces:
StructConverter, Serializable, Comparable<DvrtType>, Constable

public enum DvrtType extends Enum<DvrtType> implements StructConverter
Defined symbol dynamic relocation entries
  • Enum Constant Details

    • IMAGE_DYNAMIC_RELOCATION_GUARD_RF_PROLOGUE

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_GUARD_RF_PROLOGUE
    • IMAGE_DYNAMIC_RELOCATION_GUARD_RF_EPILOGUE

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_GUARD_RF_EPILOGUE
    • IMAGE_DYNAMIC_RELOCATION_IMPORT_CONTROL_TRANSFER

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_IMPORT_CONTROL_TRANSFER
    • IMAGE_DYNAMIC_RELOCATION_INDIR_CONTROL_TRANSFER

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_INDIR_CONTROL_TRANSFER
    • IMAGE_DYNAMIC_RELOCATION_SWITCHABLE_BRANCH

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_SWITCHABLE_BRANCH
    • IMAGE_DYNAMIC_RELOCATION_ARM64X

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_ARM64X
    • IMAGE_DYNAMIC_RELOCATION_FUNCTION_OVERRIDE

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_FUNCTION_OVERRIDE
    • IMAGE_DYNAMIC_RELOCATION_ARM64_KERNEL_IMPORT_CALL_TRANSFER

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_ARM64_KERNEL_IMPORT_CALL_TRANSFER
    • IMAGE_DYNAMIC_RELOCATION_UNKNOWN

      public static final DvrtType IMAGE_DYNAMIC_RELOCATION_UNKNOWN
  • Method Details

    • values

      public static DvrtType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DvrtType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public long getValue()
      Returns the type's defined value.
      Returns:
      the type's defined value
    • changeSize

      public DvrtType changeSize(int n)
      Changes the size of this DvrtType to the given number of bytes
      Parameters:
      n - The new size in bytes
      Returns:
      This DvrtType, with the new size applied
    • type8

      public static DvrtType type8(BinaryReader reader) throws IOException
      Reads an 8-byte DvrtType
      Parameters:
      reader - A BinaryReader that points to the start of the type value
      Returns:
      The type that was read, or IMAGE_DYNAMIC_RELOCATION_UNKNOWN if the value read does not correspond to a known type
      Throws:
      IOException - if there was an IO-related error
    • type4

      public static DvrtType type4(BinaryReader reader) throws IOException
      Reads a 4-byte DvrtType
      Parameters:
      reader - A BinaryReader that points to the start of the type value
      Returns:
      The type that was read, or IMAGE_DYNAMIC_RELOCATION_UNKNOWN if the value read does not correspond to a known type
      Throws:
      IOException - if there was an IO-related error
    • toDataType

      public DataType toDataType() throws DuplicateNameException, IOException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

      class A {
          int foo;
          double bar;
      }
      

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      IOException - if an IO-related error occurs
      See Also: