Class AddressSourceInfo

java.lang.Object
ghidra.program.database.mem.AddressSourceInfo

public class AddressSourceInfo extends Object
Provides information about the source of a byte value at an address including the file it came from, the offset into that file, and the original value of that byte.
  • Constructor Details

  • Method Details

    • getAddress

      public Address getAddress()
      Returns the address for which this object provides byte source information.
      Returns:
      the address for which this object provides byte source information.
    • getFileOffset

      public long getFileOffset()
      Returns the offset into the originally imported file that provided the byte value for the associated address or -1 if there is no source information for this location.
      Returns:
      the offset into the originally imported file that provided the byte value for the associated address.
    • getFileName

      public String getFileName()
      Returns the filename of the originally imported file that provided the byte value for the associated address or null if there is no source information for this location.
      Returns:
      the filename of the originally imported file that provided the byte value for the associated address or null if there is no source information for this location.
    • getOriginalValue

      public byte getOriginalValue() throws IOException
      Returns the original byte value from the imported file that provided the byte value for the associated address or 0 if there is no source information for this location.
      Returns:
      the original byte value from the imported file that provided the byte value for the associated address or 0 if there is no source information for this location.
      Throws:
      IOException - if an io error occurs reading the program database.
    • getMemoryBlockSourceInfo

      public MemoryBlockSourceInfo getMemoryBlockSourceInfo()
      Returns the MemoryBlockSourceInfo for the region surround this info's location.
      Returns:
      the MemoryBlockSourceInfo for the region surround this info's location.