java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.items.DataHints

@Ser public class DataHints extends Object
Hints for native data items.
  • Field Details

    • ABSOLUTE_ADDRESS

      public static final int ABSOLUTE_ADDRESS
      Hint: the data item may be an absolute virtual address. The item type may or may not be compatible with that hint.
      See Also:
    • RELATIVE_ADDRESS

      public static final int RELATIVE_ADDRESS
      Hint: the data item may be an image-base relative virtual address. The item type may or may not be compatible with that hint.

      NOTE: A similar hint can also be set onto structure field definitions, which are part of structure types; see IStructureTypeField.FLAG_HINT_RVA

      See Also:
    • NO_ADDRESS

      public static final int NO_ADDRESS
      Hint: the data item is NOT an address. It is used directly or combined with another value.
      See Also:
    • INNER_REFERENCE

      public static final int INNER_REFERENCE
      Hint: there is a reference to specific data byte (most probably flag usage)
      See Also:
  • Constructor Details

    • DataHints

      public DataHints()
      Create empty data hints.
  • Method Details

    • setAddressCalculationHint

      public void setAddressCalculationHint(int addressCalculationHint)
      Set the address calculation hint.
      Parameters:
      addressCalculationHint - 0 or ABSOLUTE_ADDRESS, RELATIVE_ADDRESS or NO_ADDRESS
    • getAddressCalculationHint

      public int getAddressCalculationHint()
      Get the address calculation hint.
      Returns:
      0 or one of ABSOLUTE_ADDRESS, RELATIVE_ADDRESS, NO_ADDRESS
    • setReferenceHint

      public void setReferenceHint(int referenceHint)
      Set the reference hint.
      Parameters:
      referenceHint - 0 or INNER_REFERENCE
    • getReferenceHint

      public int getReferenceHint()
      Get the reference hint.
      Returns:
      0 or INNER_REFERENCE