Package ghidra.app.util.bin.format.som
Class SomAuxHeader
java.lang.Object
ghidra.app.util.bin.format.som.SomAuxHeader
- All Implemented Interfaces:
StructConverter
- Direct Known Subclasses:
SomExecAuxHeader,SomLinkerFootprintAuxHeader,SomProductSpecificsAuxHeader,SomUnknownAuxHeader
Abstract parent class for SOM auxiliary headers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuxId()Returns thisSomAuxHeader'saux ID.longReturns the length in bytes of thisauxiliary header(including the size of the aux id).abstract DataTypeReturns a structure datatype representing the contents of the implementor of this interface.
-
Field Details
-
auxId
-
-
Constructor Details
-
SomAuxHeader
Creates a newSomAuxHeader- Parameters:
reader- ABinaryReaderpositioned at the start of the auxiliary header- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getAuxId
Returns thisSomAuxHeader'saux ID.- Returns:
- this
SomAuxHeader'saux ID
-
getLength
public long getLength()Returns the length in bytes of thisauxiliary 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
Description copied from interface:StructConverterReturns 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:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-