Class EntryDescriptor
- java.lang.Object
-
- ghidra.app.util.bin.format.macos.asd.EntryDescriptor
-
- All Implemented Interfaces:
StructConverter
public class EntryDescriptor extends java.lang.Object implements StructConverter
-
-
Constructor Summary
Constructors Constructor Description EntryDescriptor(int entryID, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getEntry()
int
getEntryID()
Returns the entry's ID.int
getLength()
Returns the length of the entry's data.int
getOffset()
The offset from the beginning of the file to the beginning of the entry's data.DataType
toDataType()
Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Method Detail
-
getEntryID
public int getEntryID()
Returns the entry's ID. Note: 0 is invalid.- Returns:
- the entry's ID
-
getOffset
public int getOffset()
The offset from the beginning of the file to the beginning of the entry's data.- Returns:
- the offset to entry's data
-
getLength
public int getLength()
Returns the length of the entry's data. The length can be zero (0).- Returns:
- the length of the entry's data
-
getEntry
public java.lang.Object getEntry()
-
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
-
-