Class ResourceInfo

java.lang.Object
ghidra.app.util.bin.format.pe.resource.ResourceInfo
All Implemented Interfaces:
Comparable<ResourceInfo>

public class ResourceInfo extends Object implements 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 Details

    • ResourceInfo

      public ResourceInfo(int address, String name, int size)
      Constructor.
      Parameters:
      address - the adjusted address where the resource exists
      name - the name of the resource
      size - 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

      public String getName()
      Returns the name of the resource.
      Returns:
      the name of the resource
    • setName

      public void setName(String name)
    • 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

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(ResourceInfo that)
      Specified by:
      compareTo in interface Comparable<ResourceInfo>