Package ghidra.app.util.bin.format.som
Class SomAuxId
java.lang.Object
ghidra.app.util.bin.format.som.SomAuxId
- All Implemented Interfaces:
StructConverter
Represents a SOM
aux_id structure- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether or not this auxiliary header is to be copied without modification to any new SOM created from this SOM, except that multiple entries with the same type and append set of “action flags” (i.e., mandatory, copy, append, ignore) should be merged (concatenation of the data portion).booleangetCopy()Returns whether or not this auxiliary header is to be copied without modification to any new SOM created from this SOM.booleanReturns whether or not this auxiliary header should be ignored if its type field is unknown (i.e., do not copy, do not merge).longReturns the length of the auxiliary header in bytes (this value does NOT include the two word identifiers at the front of the header).booleanReturns whether or not this auxiliary header contains information that the linker must understand.intReturns the reserved value.intgetType()Returns the type of auxiliary header.Returns a structure datatype representing the contents of the implementor of this interface.
-
Field Details
-
SIZE
public static final int SIZEThe size in bytes of aSomAuxId- See Also:
-
-
Constructor Details
-
SomAuxId
Creates a newSomAuxId- Parameters:
reader- ABinaryReaderpositioned at the start of the auxiliary ID- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getMandatory
public boolean getMandatory()Returns whether or not this auxiliary header contains information that the linker must understand.- Returns:
- whether or not this auxiliary header contains information that the linker must understand
-
getCopy
public boolean getCopy()Returns whether or not this auxiliary header is to be copied without modification to any new SOM created from this SOM.- Returns:
- whether or not this auxiliary header is to be copied without modification to any new SOM created from this SOM
-
getAppend
public boolean getAppend()Returns whether or not this auxiliary header is to be copied without modification to any new SOM created from this SOM, except that multiple entries with the same type and append set of “action flags” (i.e., mandatory, copy, append, ignore) should be merged (concatenation of the data portion).- Returns:
- whether or not this auxiliary header is to be copied without modification to any new SOM created from this SOM, except that multiple entries with the same type and append set of “action flags” (i.e., mandatory, copy, append, ignore) should be merged (concatenation of the data portion)
-
getIgnore
public boolean getIgnore()Returns whether or not this auxiliary header should be ignored if its type field is unknown (i.e., do not copy, do not merge).- Returns:
- whether or not this auxiliary header should be ignored if its type field is unknown (i.e., do not copy, do not merge)
-
getReserved
public int getReserved()Returns the reserved value.- Returns:
- the reserved value
-
getType
public int getType()Returns the type of auxiliary header.- Returns:
- the type of auxiliary header
- See Also:
-
getLength
public long getLength()Returns the length of the auxiliary header in bytes (this value does NOT include the two word identifiers at the front of the header).- Returns:
- the length of the auxiliary header in bytes (this value does NOT include the two word identifiers at the front of the header)
-
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:
-