Package ghidra.app.util.bin.format.som
Class SomCompilationUnit
java.lang.Object
ghidra.app.util.bin.format.som.SomCompilationUnit
- All Implemented Interfaces:
StructConverter
Represents a SOM
compilation_unit structure- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSomCompilationUnit(BinaryReader reader, long symbolStringsLocation) Creates a newSomCompilationUnit -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether or not the compilation unit is not the first SOM in a multiple chunk compilation.Returns the compile time.Returns the language name.getName()Returns the compilation unit name.Returns the product ID.intReturns the reserved value.Returns the source time.Returns the version ID.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 aSomCompilationUnit- See Also:
-
-
Constructor Details
-
SomCompilationUnit
Creates a newSomCompilationUnit- Parameters:
reader- ABinaryReaderpositioned at the start of the recordsymbolStringsLocation- The starting index of the symbol strings- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getName
Returns the compilation unit name.- Returns:
- the compilation unit name
-
getLanguageName
Returns the language name.- Returns:
- the language name
-
getProductId
Returns the product ID.- Returns:
- the product ID
-
getVersionId
Returns the version ID.- Returns:
- the version ID
-
getReserved
public int getReserved()Returns the reserved value.- Returns:
- the reserved value
-
getChunkFlag
public boolean getChunkFlag()Returns whether or not the compilation unit is not the first SOM in a multiple chunk compilation.- Returns:
- whether or not the compilation unit is not the first SOM in a multiple chunk compilation
-
getCompileTime
Returns the compile time.- Returns:
- the compile time
-
getSourceTime
Returns the source time.- Returns:
- the source time
-
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:
-