Interface CompositeInternal

All Superinterfaces:
Composite, DataType
All Known Subinterfaces:
StructureInternal, UnionInternal
All Known Implementing Classes:
CompositeDataTypeImpl, StructureDataType, UnionDataType

public interface CompositeInternal extends Composite
Interface for common methods in Structure and Union
  • Field Details

    • ALIGN_NAME

      static final String ALIGN_NAME
      See Also:
    • PACKING_NAME

      static final String PACKING_NAME
      See Also:
    • DISABLED_PACKING_NAME

      static final String DISABLED_PACKING_NAME
      See Also:
    • DEFAULT_PACKING_NAME

      static final String DEFAULT_PACKING_NAME
      See Also:
    • DEFAULT_PACKING

      static final int DEFAULT_PACKING
      The stored packing value which corresponds to a composite that will automatically pack based upon the alignment requirements of its components. A positive pack value will also pack in a similar fashion but will use the pack value as a maximum alignment for each component. See getStoredPackingValue().
      See Also:
    • NO_PACKING

      static final int NO_PACKING
      The stored packing value which corresponds to a composite whose packing has been disabled. In the case of structures this will permit explicit component placement by offset within the structure and undefined filler components will be used. This is the initial state of all newly instantiated structures. See getStoredPackingValue().
      See Also:
    • DEFAULT_ALIGNMENT

      static final int DEFAULT_ALIGNMENT
      The stored minimum alignment value which indicates the default alignment should be used based upon the packing and component alignment requirements. See getStoredMinimumAlignment().
      See Also:
    • MACHINE_ALIGNMENT

      static final int MACHINE_ALIGNMENT
      The stored minimum alignment value which indicates the machine alignment should be used as the minimum alignment (as defined by the current DataOrganization.getMachineAlignment()). See getStoredMinimumAlignment().
      See Also:
  • Method Details

    • getStoredPackingValue

      int getStoredPackingValue()
      Gets the current packing value (typically a power of 2). Other special values which may be returned include 0 and -1.
      Returns:
      the current positive packing value, 0 or -1.
    • getStoredMinimumAlignment

      int getStoredMinimumAlignment()
      Get the minimum alignment setting for this Composite which contributes to the actual computed alignment value (see Composite.getAlignment().
      Returns:
      the minimum alignment setting for this Composite or a reserved value to indicate either DEFAULT_ALIGNMENT or MACHINE_ALIGNMENT.
    • toString

      static String toString(Composite composite)
      Dump composite and its components for use in Object.toString() representation.
      Parameters:
      composite - composite instance to be dumped
      Returns:
      formatted dump as string
    • getAlignmentAndPackingString

      static String getAlignmentAndPackingString(Composite composite)
    • getMinAlignmentString

      static String getMinAlignmentString(Composite composite)
    • getPackingString

      static String getPackingString(Composite composite)