Class DyldCacheSlideInfo2
java.lang.Object
ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfoCommon
ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfo2
- All Implemented Interfaces:
StructConverter
Represents a dyld_cache_slide_info2 structure.
Seen in iOS 10 and 11.
-
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, mappingInfo, slideInfoOffset, version -
Constructor Summary
ConstructorsConstructorDescriptionDyldCacheSlideInfo2(BinaryReader reader, DyldCacheMappingInfo mappingInfo) Create a newDyldCacheSlideInfo2. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns The delta mask.short[]Returns The page extras array.longReturns The page extras count.longReturns The page extras offset.longReturns The page size.short[]Returns The page starts array.longReturns The page starts count.longReturns The page starts offset.getSlideFixups(BinaryReader reader, int pointerSize, MessageLog log, TaskMonitor monitor) longReturns The "value add".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
fixupSlidePointers, getMappingInfo, getSlideInfoOffset, getVersion, parseSlideInfo
-
Constructor Details
-
DyldCacheSlideInfo2
public DyldCacheSlideInfo2(BinaryReader reader, DyldCacheMappingInfo mappingInfo) throws IOException Create a newDyldCacheSlideInfo2.- Parameters:
reader- ABinaryReaderpositioned at the start of a DYLD slide info 2mappingInfo- TheDyldCacheMappingInfoof where the slide fixups will take place- Throws:
IOException- if there was an IO-related problem creating the DYLD slide info 2
-
-
Method Details
-
getPageSize
public long getPageSize()Returns The page size.- Returns:
- The page size
-
getPageStartsOffset
public long getPageStartsOffset()Returns The page starts offset.- Returns:
- The page starts offset
-
getPageStartsCount
public long getPageStartsCount()Returns The page starts count.- Returns:
- The page starts count
-
getPageExtrasOffset
public long getPageExtrasOffset()Returns The page extras offset.- Returns:
- The page extras offset
-
getPageExtrasCount
public long getPageExtrasCount()Returns The page extras count.- Returns:
- The page extras count
-
getDeltaMask
public long getDeltaMask()Returns The delta mask.- Returns:
- The delta mask
-
getValueAdd
public long getValueAdd()Returns The "value add".- Returns:
- The "value add"
-
getPageStarts
public short[] getPageStarts()Returns The page starts array.- Returns:
- The page starts array
-
getPageExtras
public short[] getPageExtras()Returns The page extras array.- Returns:
- The page extras array
-
getSlideFixups
public List<DyldFixup> getSlideFixups(BinaryReader reader, int pointerSize, MessageLog log, TaskMonitor monitor) throws IOException, CancelledException Description copied from class:DyldCacheSlideInfoCommonWalks the slide fixup information and collects aListofDyldFixups that will need to be applied to the image- Specified by:
getSlideFixupsin classDyldCacheSlideInfoCommon- Parameters:
reader- ABinaryReaderpositioned at the start of the segment to fix uppointerSize- The size of a pointer in byteslog- The logmonitor- A cancellable monitor- Returns:
- A
ListofDyldFixups - Throws:
IOException- If there was an IO-related issueCancelledException- If the user cancelled the operation
-
toDataType
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- Overrides:
toDataTypein classDyldCacheSlideInfoCommon- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-