Package ghidra.app.util.bin.format.som
Class SomImportEntry
java.lang.Object
ghidra.app.util.bin.format.som.SomImportEntry
- All Implemented Interfaces:
StructConverter
Represents a SOM
import_entry structure- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSomImportEntry(BinaryReader reader, long stringTableLoc) Creates a newSomImportEntry -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the import, ornullif it doesn't have one.intReturns the first reserved value.intReturns the second reserved value.intgetType()Returns the symbol type (text, data, or bss).booleanReturns whether or not code imports do not have their address taken in that shared library.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 aSomImportEntry- See Also:
-
-
Constructor Details
-
SomImportEntry
Creates a newSomImportEntry- Parameters:
reader- ABinaryReaderpositioned at the start of the import liststringTableLoc- The location of the string table- Throws:
IOException- if there was an IO-related error
-
-
Method Details
-
getName
Returns the name of the import, ornullif it doesn't have one.- Returns:
- the name of the import, or
nullif it doesn't have one
-
getReserved2
public int getReserved2()Returns the second reserved value.- Returns:
- the second reserved value
-
getType
public int getType()Returns the symbol type (text, data, or bss).- Returns:
- the symbol type (text, data, or bss)
-
isBypassable
public boolean isBypassable()Returns whether or not code imports do not have their address taken in that shared library.- Returns:
- whether or not code imports do not have their address taken in that shared library
-
getReserved1
public int getReserved1()Returns the first reserved value.- Returns:
- the first reserved value
-
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:
-