Class Omf51LibraryHeaderRecord

java.lang.Object
ghidra.app.util.bin.format.omf.OmfRecord
ghidra.app.util.bin.format.omf.omf51.Omf51LibraryHeaderRecord
All Implemented Interfaces:
StructConverter

public class Omf51LibraryHeaderRecord extends OmfRecord
  • Field Details

  • Constructor Details

  • Method Details

    • parseData

      public void parseData() throws IOException, OmfException
      Description copied from class: OmfRecord
      Parses this OmfRecord's type-spefic data
      Specified by:
      parseData in class OmfRecord
      Throws:
      IOException - if there was an IO-related error
      OmfException - if there was a problem with the OMF specification
    • 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
      Specified by:
      toDataType in class OmfRecord
      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:
    • getModuleCount

      public short getModuleCount()
      Returns the module count.
      Returns:
      the module count
    • getModNamesBlockNumber

      public short getModNamesBlockNumber()
      Returns the module names block number.
      Returns:
      the module names block number
    • getModNamesByteNumber

      public short getModNamesByteNumber()
      Returns the module names byte number.
      Returns:
      the module names byte number
    • getModNamesOffset

      public int getModNamesOffset()
      Returns the module names file offset.
      Returns:
      the module names file offset