Class DataHints
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.items.DataHints
Hints for native data items.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHint: the data item may be an absolute virtual address.static final intHint: there is a reference to specific data byte (most probably flag usage)static final intHint: the data item is NOT an address.static final intHint: the data item may be an image-base relative virtual address. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the address calculation hint.intGet the reference hint.voidsetAddressCalculationHint(int addressCalculationHint) Set the address calculation hint.voidsetReferenceHint(int referenceHint) Set the reference hint.
-
Field Details
-
ABSOLUTE_ADDRESS
public static final int ABSOLUTE_ADDRESSHint: 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_ADDRESSHint: 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_ADDRESSHint: 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_REFERENCEHint: 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 orABSOLUTE_ADDRESS,RELATIVE_ADDRESSorNO_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 orINNER_REFERENCE
-
getReferenceHint
public int getReferenceHint()Get the reference hint.- Returns:
- 0 or
INNER_REFERENCE
-