Class SomImportEntry

java.lang.Object
ghidra.app.util.bin.format.som.SomImportEntry
All Implemented Interfaces:
StructConverter

public class SomImportEntry extends Object implements StructConverter
Represents a SOM import_entry structure
See Also:
  • Field Details

  • Constructor Details

    • SomImportEntry

      public SomImportEntry(BinaryReader reader, long stringTableLoc) throws IOException
      Creates a new SomImportEntry
      Parameters:
      reader - A BinaryReader positioned at the start of the import list
      stringTableLoc - The location of the string table
      Throws:
      IOException - if there was an IO-related error
  • Method Details

    • getName

      public String getName()
      Returns the name of the import, or null if it doesn't have one.
      Returns:
      the name of the import, or null if 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

      public 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: