Class DyldCacheLocalSymbolsEntry

java.lang.Object
ghidra.app.util.bin.format.macho.dyld.DyldCacheLocalSymbolsEntry
All Implemented Interfaces:
StructConverter

public class DyldCacheLocalSymbolsEntry extends Object implements StructConverter
Represents a dyld_cache_local_symbols_entry structure.
See Also:
  • Constructor Details

    • DyldCacheLocalSymbolsEntry

      public DyldCacheLocalSymbolsEntry(BinaryReader reader, boolean use64bitOffsets) throws IOException
      Parameters:
      reader - A BinaryReader positioned at the start of a DYLD local symbols entry
      use64bitOffsets - True if the DYLD local symbol entries use 64-bit dylib offsets; false if they use 32-bit
      Throws:
      IOException - if there was an IO-related problem creating the DYLD local symbols entry
  • Method Details

    • getDylibOffset

      public long getDylibOffset()
      Returns The dylib offset.
      Returns:
      The dylib offset
    • getNListStartIndex

      public int getNListStartIndex()
      Returns The nlist start index.
      Returns:
      The nlist start index
    • getNListCount

      public int getNListCount()
      Returns The nlist count.
      Returns:
      The nlist count
    • 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
      See Also: