Package ghidra.app.util.viewer.util
Class AddressIndexMapConverter
java.lang.Object
ghidra.app.util.viewer.util.AddressIndexMap
ghidra.app.util.viewer.util.AddressIndexMapConverter
-
Field Summary
Fields inherited from class ghidra.app.util.viewer.util.AddressIndexMap
DEFAULT_UNVIEWABLE_GAP_SIZE, PERCENT_DIVIDER
-
Constructor Summary
ConstructorDescriptionAddressIndexMapConverter
(AddressIndexMap addressIndexMap, Program mapProgram, Program otherProgram) -
Method Summary
Modifier and TypeMethodDescriptiongetAddress
(BigInteger index) Returns the i'th address in the set.Returns the Address set corresponding to the set of indexesReturns a FieldSelection containing the set of indexes represented by the given address setReturns the index for the given address.Returns the total set of addresses in this index mapping (not including those that have been closed)getMaxIndex
(Address addr) Returns the the maximum address for the range containing the given address.getMinIndex
(Address addr) Returns the the minimum address for the range containing the given address.Returns the total set of addresses in this map include addresses that have been closedMethods inherited from class ghidra.app.util.viewer.util.AddressIndexMap
getIndexAtOrAfter, getIndexCount, getMiniumUnviewableGapSize, isGapAddress, isGapIndex, removeUnviewableAddressRanges, reset
-
Constructor Details
-
AddressIndexMapConverter
public AddressIndexMapConverter(AddressIndexMap addressIndexMap, Program mapProgram, Program otherProgram)
-
-
Method Details
-
getAddress
Description copied from class:AddressIndexMap
Returns the i'th address in the set.- Overrides:
getAddress
in classAddressIndexMap
- Parameters:
index
- the index of the address to retrieve.- Returns:
- the address associated with the given index
-
getOriginalAddressSet
Description copied from class:AddressIndexMap
Returns the total set of addresses in this map include addresses that have been closed- Overrides:
getOriginalAddressSet
in classAddressIndexMap
- Returns:
- the total set of addresses in the map including addresses that have been closed
-
getIndexedAddressSet
Description copied from class:AddressIndexMap
Returns the total set of addresses in this index mapping (not including those that have been closed)- Overrides:
getIndexedAddressSet
in classAddressIndexMap
- Returns:
- the total set of addresses in this index mapping (not including those that have been closed)
-
getAddressSet
Description copied from class:AddressIndexMap
Returns the Address set corresponding to the set of indexes- Overrides:
getAddressSet
in classAddressIndexMap
- Parameters:
sel
- the FieldSelection containing the set of indexes to include.- Returns:
- the AddressSet for the given field selection.
-
getFieldSelection
Description copied from class:AddressIndexMap
Returns a FieldSelection containing the set of indexes represented by the given address set- Overrides:
getFieldSelection
in classAddressIndexMap
- Parameters:
set
- the set of addresses to convert into a set of indexes.- Returns:
- a FieldSelection for the given address set.
-
getIndex
Description copied from class:AddressIndexMap
Returns the index for the given address. If the address is not mapped, null will be returned- Overrides:
getIndex
in classAddressIndexMap
- Parameters:
addr
- the address for which to retrieve the index.- Returns:
- the index associated with the given address.
-
getMaxIndex
Description copied from class:AddressIndexMap
Returns the the maximum address for the range containing the given address.- Overrides:
getMaxIndex
in classAddressIndexMap
- Parameters:
addr
- the address to find its containing range's max address.- Returns:
- the the maximum address for the range containing the given address.
-
getMinIndex
Description copied from class:AddressIndexMap
Returns the the minimum address for the range containing the given address.- Overrides:
getMinIndex
in classAddressIndexMap
- Parameters:
addr
- the address to find its containing range's min address.- Returns:
- the the minimum address for the range containing the given address.
-