Package ghidra.program.database.mem
Class AddressSourceInfo
- java.lang.Object
-
- ghidra.program.database.mem.AddressSourceInfo
-
public class AddressSourceInfo extends java.lang.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 Summary
Constructors Constructor Description AddressSourceInfo(Memory memory, Address address, MemoryBlock block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
getAddress()
Returns the address for which this object provides byte source information.java.lang.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.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.MemoryBlockSourceInfo
getMemoryBlockSourceInfo()
Returns theMemoryBlockSourceInfo
for the region surround this info's location.byte
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.
-
-
-
Constructor Detail
-
AddressSourceInfo
public AddressSourceInfo(Memory memory, Address address, MemoryBlock block)
-
-
Method Detail
-
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 java.lang.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 java.io.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:
java.io.IOException
- if an io error occurs reading the program database.
-
getMemoryBlockSourceInfo
public MemoryBlockSourceInfo getMemoryBlockSourceInfo()
Returns theMemoryBlockSourceInfo
for the region surround this info's location.- Returns:
- the
MemoryBlockSourceInfo
for the region surround this info's location.
-
-