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
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ResourceInfo that) int
Returns the adjusted address where the resource exists.int
getID()
Returns the ID of the resource.getName()
Returns the name of the resource.int
getSize()
Returns the size of the resource.int
Returns the resource type ID.void
setID
(int id) void
void
setTypeID
(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:
compareTo
in interfaceComparable<ResourceInfo>
-