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 byte
getAttributes()
Returns the resource attributes.int
getDataOffset()
Returns the offset from the beginning of the resource data to the data for this resource.int
getHandle()
Returns the resource handle.short
getID()
Returns the resource ID.java.lang.String
getName()
short
getNameOffset()
Returns the offset from the beginning of the resource name list to resource name.DataType
toDataType()
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: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
-
-