Package ghidra.program.model.data
Enum Class DataUtilities.ClearDataMode
- All Implemented Interfaces:
Serializable
,Comparable<DataUtilities.ClearDataMode>
,Constable
- Enclosing class:
DataUtilities
ClearDataMode
specifies how conflicting data should be cleared
when creating/re-creating data-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnsure that data will fit before clearing a single code unit at the specified data address.Clear all conflicting data provided new data will fit within memory and not conflict with an instruction.Clear all Default Data provided new data will fit within memory and not conflict with an instruction or other defined data.Clear all conflicting Undefined Data provided new data will fit within memory and not conflict with an instruction or other defined data.Always clear a single code unit at the data address regardless of the ability for the desired data-type to fit. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataUtilities.ClearDataMode
Returns the enum constant of this class with the specified name.static DataUtilities.ClearDataMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHECK_FOR_SPACE
Ensure that data will fit before clearing a single code unit at the specified data address. -
CLEAR_SINGLE_DATA
Always clear a single code unit at the data address regardless of the ability for the desired data-type to fit. -
CLEAR_ALL_UNDEFINED_CONFLICT_DATA
Clear all conflicting Undefined Data provided new data will fit within memory and not conflict with an instruction or other defined data. Undefined refers to defined data with the Undefined data-type (seeUndefined.isUndefined(DataType)
). -
CLEAR_ALL_DEFAULT_CONFLICT_DATA
Clear all Default Data provided new data will fit within memory and not conflict with an instruction or other defined data. In this context Default Data refers to all defined data with either an Undefined data-type (seeUndefined.isUndefined(DataType)
) or is considered a default pointer which is either:- A pointer without a referenced datatype (i.e., addr), or
- An auto-named pointer-typedef without a referenced datatype (e.g., pointer __((offset(0x8))).
-
CLEAR_ALL_CONFLICT_DATA
Clear all conflicting data provided new data will fit within memory and not conflict with an instruction.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-