Class ResourceInfo
java.lang.Object
ghidra.app.util.bin.format.pe.resource.ResourceInfo
- All Implemented Interfaces:
Comparable<ResourceInfo>
A class to hold the information extracted from a
resource data directory.
NOTE:
This class is simply a storage class created for
parsing the PE header data structures.
It does not map back to a PE data data structure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ResourceInfo that) intReturns the adjusted address where the resource exists.intgetID()Returns the ID of the resource.getName()Returns the name of the resource.intgetSize()Returns the size of the resource.intReturns the resource type ID.voidsetID(int id) voidvoidsetTypeID(int typeID) toString()
-
Constructor Details
-
ResourceInfo
Constructor.- Parameters:
address- the adjusted address where the resource existsname- the name of the resourcesize- the size of the resource
-
-
Method Details
-
getAddress
public int getAddress()Returns the adjusted address where the resource exists.- Returns:
- the adjusted address where the resource exists
-
getName
Returns the name of the resource.- Returns:
- the name of the resource
-
setName
-
getSize
public int getSize()Returns the size of the resource.- Returns:
- the size of the resource
-
getID
public int getID()Returns the ID of the resource.- Returns:
- the ID of the resource
-
setID
public void setID(int id) -
getTypeID
public int getTypeID()Returns the resource type ID. For example, RT_CURSOR, RT_BITMAP, etc. Returns -1 if this is a named resource. -
setTypeID
public void setTypeID(int typeID) -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<ResourceInfo>
-