Class Resource

java.lang.Object
ghidra.app.util.bin.format.ne.Resource
Direct Known Subclasses:
ResourceStringTable

public class Resource extends Object
An implementation of the new-executable TNAMEINFO structure.
  • Field Details Link icon

    • FLAG_MOVEABLE Link icon

      public static final short FLAG_MOVEABLE
      The resources is not fixed.
      See Also:
    • FLAG_PURE Link icon

      public static final short FLAG_PURE
      The resource can be shared.
      See Also:
    • FLAG_PRELOAD Link icon

      public static final short FLAG_PRELOAD
      The resource is preloaded.
      See Also:
  • Method Details Link icon

    • getFileOffset Link icon

      public short getFileOffset()
      Returns the file offset of this resource.
      Returns:
      the file offset of this resource
    • getFileLength Link icon

      public short getFileLength()
      Returns the file length of this resource.
      Returns:
      the file length of this resource
    • getFlagword Link icon

      public short getFlagword()
      Returns the flag word of this resource.
      Returns:
      the flag word of this resource
    • getResourceID Link icon

      public short getResourceID()
      Returns the resource ID of this resource.
      Returns:
      the resource ID of this resource
    • getHandle Link icon

      public short getHandle()
      Returns the handle of this resource.
      Returns:
      the handle of this resource
    • getUsage Link icon

      public short getUsage()
      Returns the usage of this resource.
      Returns:
      the usage of this resource
    • isMoveable Link icon

      public boolean isMoveable()
      Returns true if this resource is moveable.
      Returns:
      true if this resource is moveable
    • isPure Link icon

      public boolean isPure()
      Returns true if this resource is pure.
      Returns:
      true if this resource is pure
    • isPreload Link icon

      public boolean isPreload()
      Returns true if this resource is preloaded.
      Returns:
      true if this resource is preloaded
    • getFileOffsetShifted Link icon

      public int getFileOffsetShifted()
      Returns the shifted file offset of this resource. this.getFileOffset() << ResourceTable.getAlignmentShiftCount()
      Returns:
      the shifted file offset of this resource
    • getFileLengthShifted Link icon

      public int getFileLengthShifted()
      Returns the shifted file length of this resource. this.getFileLength() << ResourceTable.getAlignmentShiftCount()
      Returns:
      the shifted file length of this resource
    • getBytes Link icon

      public byte[] getBytes() throws IOException
      Returns the actual bytes for this resource.
      Returns:
      the actual bytes for this resource
      Throws:
      IOException
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
      See Also: