Class LinearAddressCorrelation
java.lang.Object
ghidra.features.base.codecompare.listing.LinearAddressCorrelation
- All Implemented Interfaces:
ListingAddressCorrelation
Creates an address correlation with a simplistic correlation where each address correlates based
on an offset from the address set's minimum address.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAddress
(Duo.Side side, Address otherAddress) Gets the address for the given side that matches the given address from the other side.getAddresses
(Duo.Side side) Gets the addresses that are part of the correlator for the given sidegetFunction
(Duo.Side side) Gets the function for the given side.getProgram
(Duo.Side side) Gets the program for the given side.
-
Constructor Details
-
LinearAddressCorrelation
-
-
Method Details
-
getProgram
Description copied from interface:ListingAddressCorrelation
Gets the program for the given side.- Specified by:
getProgram
in interfaceListingAddressCorrelation
- Parameters:
side
- LEFT or RIGHT- Returns:
- the program for the given side
-
getAddresses
Description copied from interface:ListingAddressCorrelation
Gets the addresses that are part of the correlator for the given side- Specified by:
getAddresses
in interfaceListingAddressCorrelation
- Parameters:
side
- LEFT or RIGHT- Returns:
- the addresses that are part of the correlator for the given side
-
getFunction
Description copied from interface:ListingAddressCorrelation
Gets the function for the given side. This will be null if the addresses are not function based.- Specified by:
getFunction
in interfaceListingAddressCorrelation
- Parameters:
side
- LEFT or RIGHT- Returns:
- the function for the given side or null if not function based
-
getAddress
Description copied from interface:ListingAddressCorrelation
Gets the address for the given side that matches the given address from the other side.- Specified by:
getAddress
in interfaceListingAddressCorrelation
- Parameters:
side
- the side to get an address forotherAddress
- the address from the other side to find a match for- Returns:
- the address for the given side that matches the given address from the other side.
-