Class SomAuxHeader

java.lang.Object
ghidra.app.util.bin.format.som.SomAuxHeader
All Implemented Interfaces:
StructConverter
Direct Known Subclasses:
SomExecAuxHeader, SomLinkerFootprintAuxHeader, SomProductSpecificsAuxHeader, SomUnknownAuxHeader

public abstract class SomAuxHeader extends Object implements StructConverter
Abstract parent class for SOM auxiliary headers
  • Field Details

  • Constructor Details

  • Method Details

    • getAuxId

      public SomAuxId getAuxId()
      Returns this SomAuxHeader's aux ID.
      Returns:
      this SomAuxHeader's aux ID
    • getLength

      public long getLength()
      Returns the length in bytes of this auxiliary header (including the size of the aux id).
      Returns:
      the length in bytes of this auxiliary header (including the size of the aux id)
    • toDataType

      public abstract DataType toDataType() throws DuplicateNameException, IOException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

       class A {
           int foo;
           double bar;
       }
       

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      IOException - if an IO-related error occurs
      See Also: