Package ghidra.program.model.data
Enum Class PackingType
- All Implemented Interfaces:
Serializable
,Comparable<PackingType>
,Constable
PackingType
specifies the pack setting which applies to a composite data type.
This can be DISABLED, DEFAULT, EXPLICIT.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDEFAULT - indicates that components should be placed automatically based upon their alignment.DISABLED - indicates that automatic component placement should not be performed, with components placed at specified offsets andundefined
components used to reflects padding/unused bytes.EXPLICIT - indicates an explicit pack value has been specified and that components should be placed automatically based upon their alignment, not to exceed the pack value. -
Method Summary
Modifier and TypeMethodDescriptionstatic PackingType
Returns the enum constant of this class with the specified name.static PackingType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
DISABLED - indicates that automatic component placement should not be performed, with components placed at specified offsets andundefined
components used to reflects padding/unused bytes. This mode is commonly used when reverse-engineering a composite since a complete and accurate definition may not be known. -
DEFAULT
DEFAULT - indicates that components should be placed automatically based upon their alignment. This is intended to reflect the default behavior of a compiler when a complete definition of a composite is known as well as the alignment of each component. -
EXPLICIT
EXPLICIT - indicates an explicit pack value has been specified and that components should be placed automatically based upon their alignment, not to exceed the pack value.
-
-
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
-