Enum Class PackingType

java.lang.Object
java.lang.Enum<PackingType>
ghidra.program.model.data.PackingType
All Implemented Interfaces:
Serializable, Comparable<PackingType>, Constable

public enum PackingType extends Enum<PackingType>
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 Constants
    Enum Constant
    Description
    DEFAULT - 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 and undefined 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static PackingType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • DISABLED

      public static final PackingType DISABLED
      DISABLED - indicates that automatic component placement should not be performed, with components placed at specified offsets and undefined 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

      public static final PackingType 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

      public static final PackingType 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

      public static PackingType[] 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 PackingType 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