Enum PackingType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PackingType>

    public enum PackingType
    extends java.lang.Enum<PackingType>
    PackingType specifies the pack setting which applies to a composite data type. This can be DISABLED, DEFAULT, EXPLICIT.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DEFAULT
      DEFAULT - indicates that components should be placed automatically based upon their alignment.
      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.
      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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PackingType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PackingType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • values

        public static PackingType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PackingType c : PackingType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PackingType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null