Class EntryDescriptor
java.lang.Object
ghidra.app.util.bin.format.macos.asd.EntryDescriptor
- All Implemented Interfaces:
StructConverter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEntry()
int
Returns the entry's ID.int
Returns the length of the entry's data.int
The offset from the beginning of the file to the beginning of the entry's data.Returns a structure datatype representing the contents of the implementor of this interface.
-
Constructor Details
-
EntryDescriptor
public EntryDescriptor(int entryID, int offset, int length)
-
-
Method Details
-
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
-
toDataType
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 existsIOException
- if an IO-related error occurs- See Also:
-