Class EntryDescriptor
java.lang.Object
ghidra.app.util.bin.format.macos.asd.EntryDescriptor
- All Implemented Interfaces:
StructConverter
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntry()intReturns the entry's ID.intReturns the length of the entry's data.intThe 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: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 existsIOException- if an IO-related error occurs- See Also:
-