Class DyldCacheAccelerateInfo
- java.lang.Object
-
- ghidra.app.util.bin.format.macho.dyld.DyldCacheAccelerateInfo
-
- All Implemented Interfaces:
StructConverter
public class DyldCacheAccelerateInfo extends java.lang.Object implements StructConverter
Represents a dyld_cache_accelerate_info structure.- See Also:
- launch-cache/dyld_cache_format.h
-
-
Constructor Summary
Constructors Constructor Description DyldCacheAccelerateInfo(BinaryReader reader)
Create a newDyldCacheAccelerateInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
markup(Program program, Address accelerateInfoAddr, TaskMonitor monitor, MessageLog log)
Marks up thisDyldCacheAccelerateInfo
with data structures and comments.void
parse(Program program, Address accelerateInfoAddr, MessageLog log, TaskMonitor monitor)
Parses the structures referenced by thisDyldCacheAccelerateInfo
.DataType
toDataType()
Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Constructor Detail
-
DyldCacheAccelerateInfo
public DyldCacheAccelerateInfo(BinaryReader reader) throws java.io.IOException
Create a newDyldCacheAccelerateInfo
.- Parameters:
reader
- ABinaryReader
positioned at the start of a DYLD accelerate info- Throws:
java.io.IOException
- if there was an IO-related problem creating the DYLD accelerate info
-
-
Method Detail
-
parse
public void parse(Program program, Address accelerateInfoAddr, MessageLog log, TaskMonitor monitor) throws CancelledException
Parses the structures referenced by thisDyldCacheAccelerateInfo
.- Parameters:
program
- TheProgram
to parse.accelerateInfoAddr
- TheAddress
of theDyldCacheAccelerateInfo
log
- The logmonitor
- A cancellable task monitor- Throws:
CancelledException
- if the user cancelled the operation
-
markup
public void markup(Program program, Address accelerateInfoAddr, TaskMonitor monitor, MessageLog log) throws CancelledException
Marks up thisDyldCacheAccelerateInfo
with data structures and comments.- Parameters:
program
- TheProgram
to mark upaccelerateInfoAddr
- TheAddress
of theDyldCacheAccelerateInfo
monitor
- A cancellable task monitorlog
- The log- Throws:
CancelledException
- if the user cancelled the operation
-
toDataType
public DataType toDataType() throws DuplicateNameException, java.io.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 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
-
-