Class TableOfContents
- java.lang.Object
-
- ghidra.app.util.bin.format.macho.commands.TableOfContents
-
- All Implemented Interfaces:
StructConverter
public class TableOfContents extends java.lang.Object implements StructConverter
Represents a dylib_table_of_contents structure.- See Also:
- mach-o/loader.h
-
-
Constructor Summary
Constructors Constructor Description TableOfContents()DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetModuleIndex()An index into the module table indicating the module in which this defined external symbol is defined.intgetSymbolIndex()An index into the symbol table indicating the defined external symbols to which this entry refers.DataTypetoDataType()Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Method Detail
-
getSymbolIndex
public int getSymbolIndex()
An index into the symbol table indicating the defined external symbols to which this entry refers.- Returns:
- an index into the symbol table
-
getModuleIndex
public int getModuleIndex()
An index into the module table indicating the module in which this defined external symbol is defined.- Returns:
- an index into the module table
-
toDataType
public DataType toDataType() throws DuplicateNameException, java.io.IOException
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 existsjava.io.IOException- See Also:
StructureDataType
-
-