Interface Union

    • Method Detail

      • insert

        DataTypeComponent insert​(int ordinal,
                                 DataType dataType)
        Description copied from interface: Composite
        Inserts a new datatype at the specified ordinal position in this composite.
        Note: For an aligned structure the ordinal position will get adjusted automatically to provide the proper alignment.
        Specified by:
        insert in interface Composite
        Parameters:
        ordinal - the ordinal where the new datatype is to be inserted.
        dataType - the datatype to insert.
        Returns:
        the componentDataType created.
        See Also:
        Composite.insert(int, ghidra.program.model.data.DataType)
      • insert

        DataTypeComponent insert​(int ordinal,
                                 DataType dataType,
                                 int length)
        Description copied from interface: Composite
        Inserts a new datatype at the specified ordinal position in this composite.
        Note: For an aligned structure the ordinal position will get adjusted automatically to provide the proper alignment.
        Specified by:
        insert in interface Composite
        Parameters:
        ordinal - the ordinal where the new datatype is to be inserted.
        dataType - the datatype to insert.
        length - the length to associate with the datatype.
        Returns:
        the componentDataType created.
        See Also:
        Composite.insert(int, ghidra.program.model.data.DataType, int)
      • insert

        DataTypeComponent insert​(int ordinal,
                                 DataType dataType,
                                 int length,
                                 java.lang.String name,
                                 java.lang.String comment)
        Description copied from interface: Composite
        Inserts a new datatype at the specified ordinal position in this composite.
        Note: For an aligned structure the ordinal position will get adjusted automatically to provide the proper alignment.
        Specified by:
        insert in interface Composite
        Parameters:
        ordinal - the ordinal where the new datatype is to be inserted.
        dataType - the datatype to insert.
        length - the length to associate with the datatype.
        name - the field name to associate with this component.
        comment - the comment to associate with this component.
        Returns:
        the componentDataType created.
        See Also:
        Composite.insert(int, ghidra.program.model.data.DataType, int, java.lang.String, java.lang.String)
      • delete

        void delete​(int ordinal)
        Description copied from interface: Composite
        Deletes the component at the given ordinal position.
        Note: For an aligned structure the delete will have no effect if the ordinal position is a component that provides alignment padding.
        Specified by:
        delete in interface Composite
        Parameters:
        ordinal - the ordinal of the component to be deleted.
        See Also:
        Composite.delete(int)