Package ghidra.program.database.mem
Class AddressSourceInfo
java.lang.Object
ghidra.program.database.mem.AddressSourceInfo
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the address for which this object provides byte source information.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.longReturns 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 theMemoryBlockSourceInfofor the region surround this info's location.byteReturns 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.
-
Constructor Details
-
AddressSourceInfo
-
-
Method Details
-
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
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
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
Returns theMemoryBlockSourceInfofor the region surround this info's location.- Returns:
- the
MemoryBlockSourceInfofor the region surround this info's location.
-