Class DyldCacheSlideInfoCommon
- java.lang.Object
-
- ghidra.app.util.bin.format.macho.dyld.DyldCacheSlideInfoCommon
-
- All Implemented Interfaces:
StructConverter
- Direct Known Subclasses:
DyldCacheSlideInfo1,DyldCacheSlideInfo2,DyldCacheSlideInfo3
public class DyldCacheSlideInfoCommon extends java.lang.Object implements StructConverter
Class for representing the common components of the various dyld_cache_slide_info structures. The intent is for the the full dyld_cache_slide_info structures to extend this and add their specific parts.- See Also:
- launch-cache/dyld_cache_format.h
-
-
Constructor Summary
Constructors Constructor Description DyldCacheSlideInfoCommon(BinaryReader reader)Create a newDyldCacheSlideInfoCommon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetVersion()Gets the version of the DYLD slide info.DataTypetoDataType()Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Constructor Detail
-
DyldCacheSlideInfoCommon
public DyldCacheSlideInfoCommon(BinaryReader reader) throws java.io.IOException
Create a newDyldCacheSlideInfoCommon.- Parameters:
reader- ABinaryReaderpositioned at the start of a DYLD slide info- Throws:
java.io.IOException- if there was an IO-related problem creating the DYLD slide info
-
-
Method Detail
-
getVersion
public int getVersion()
Gets the version of the DYLD slide info.- Returns:
- The version of the DYLD slide info.
-
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
-
-