Class DyldCacheSlideInfo4
- java.lang.Object
-
- ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfoCommon
-
- ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfo4
-
- All Implemented Interfaces:
StructConverter
public class DyldCacheSlideInfo4 extends DyldCacheSlideInfoCommon
Represents a dyld_cache_slide_info3 structure.- See Also:
- dyld3/shared-cache/dyld_cache_format.h
-
-
Field Summary
-
Fields inherited from class ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfoCommon
BYTES_PER_CHAIN_OFFSET, CHAIN_OFFSET_MASK, DATA_PAGE_MAP_ENTRY, slideInfoOffset, version
-
-
Constructor Summary
Constructors Constructor Description DyldCacheSlideInfo4(BinaryReader reader)
Create a newDyldCacheSlideInfo3
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fixPageChains(Program program, DyldCacheHeader dyldCacheHeader, boolean addRelocations, MessageLog log, TaskMonitor monitor)
long
getDeltaMask()
short[]
getPageExtras()
int
getPageExtrasCount()
int
getPageExtrasOffset()
int
getPageSize()
short[]
getPageStarts()
int
getPageStartsCount()
int
getPageStartsOffset()
long
getValueAdd()
DataType
toDataType()
Returns a structure datatype representing the contents of the implementor of this interface.-
Methods inherited from class ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfoCommon
addRelocationTableEntry, createChainPointers, getSlideInfoOffset, getVersion, parseSlideInfo
-
-
-
-
Constructor Detail
-
DyldCacheSlideInfo4
public DyldCacheSlideInfo4(BinaryReader reader) throws java.io.IOException
Create a newDyldCacheSlideInfo3
.- Parameters:
reader
- ABinaryReader
positioned at the start of a DYLD slide info 3- Throws:
java.io.IOException
- if there was an IO-related problem creating the DYLD slide info 3
-
-
Method Detail
-
getPageSize
public int getPageSize()
-
getPageStartsOffset
public int getPageStartsOffset()
-
getPageStartsCount
public int getPageStartsCount()
-
getPageExtrasOffset
public int getPageExtrasOffset()
-
getPageExtrasCount
public int getPageExtrasCount()
-
getDeltaMask
public long getDeltaMask()
-
getValueAdd
public long getValueAdd()
-
getPageStarts
public short[] getPageStarts()
-
getPageExtras
public short[] getPageExtras()
-
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
- Overrides:
toDataType
in classDyldCacheSlideInfoCommon
- 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
-
fixPageChains
public void fixPageChains(Program program, DyldCacheHeader dyldCacheHeader, boolean addRelocations, MessageLog log, TaskMonitor monitor) throws MemoryAccessException, CancelledException
- Specified by:
fixPageChains
in classDyldCacheSlideInfoCommon
- Throws:
MemoryAccessException
CancelledException
-
-