Class ReferenceListEntry
- java.lang.Object
-
- ghidra.app.util.bin.format.macos.rm.ReferenceListEntry
-
- All Implemented Interfaces:
StructConverter
public class ReferenceListEntry extends java.lang.Object implements StructConverter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetAttributes()Returns the resource attributes.intgetDataOffset()Returns the offset from the beginning of the resource data to the data for this resource.intgetHandle()Returns the resource handle.shortgetID()Returns the resource ID.java.lang.StringgetName()shortgetNameOffset()Returns the offset from the beginning of the resource name list to resource name.DataTypetoDataType()Returns a structure datatype representing the contents of the implementor of this interface.
-
-
-
Method Detail
-
getID
public short getID()
Returns the resource ID.- Returns:
- the resource ID
-
getName
public java.lang.String getName()
-
getNameOffset
public short getNameOffset()
Returns the offset from the beginning of the resource name list to resource name.- Returns:
- the offset to the resource name
-
getAttributes
public byte getAttributes()
Returns the resource attributes.- Returns:
- the resource attributes
-
getDataOffset
public int getDataOffset()
Returns the offset from the beginning of the resource data to the data for this resource.- Returns:
- the offset to the resource data
-
getHandle
public int getHandle()
Returns the resource handle. This field is reserved.- Returns:
- the resource handle
-
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
-
-