Package ghidra.app.services
Class DebuggerStaticMappingService.MappedAddressRange
java.lang.Object
ghidra.app.services.DebuggerStaticMappingService.MappedAddressRange
- All Implemented Interfaces:
Comparable<DebuggerStaticMappingService.MappedAddressRange>
- Enclosing interface:
DebuggerStaticMappingService
public static class DebuggerStaticMappingService.MappedAddressRange
extends Object
implements Comparable<DebuggerStaticMappingService.MappedAddressRange>
A pair for describing sets of mapped addresses
Note, the natural order is by the destination address.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGet the destination address rangelonggetShift()Get the shift from the source address range to this address rangeGet the source address rangeinthashCode()mapDestinationToSource(Address daddr) Map an address in the destination range to the corresponding address in the source rangeMap a sub-range of the destination to the corresponding sub-range of the sourcemapSourceToDestination(Address saddr) Map an address in the source range to the corresponding address in the destination rangeMap a sub-range of the source to the corresponding sub-range of the destinationtoString()
-
Constructor Details
-
MappedAddressRange
-
-
Method Details
-
toString
-
getShift
public long getShift()Get the shift from the source address range to this address rangeThe meaning depends on what returned this view. If this view is the "static" range, then this shift describes what was added to the offset of the "dynamic" address to get a particular address in the "static" range.
- Returns:
- the shift
-
mapSourceToDestination
Map an address in the source range to the corresponding address in the destination range- Parameters:
saddr- the source address (not validated)- Returns:
- the destination address
-
mapDestinationToSource
Map an address in the destination range to the corresponding address in the source range- Parameters:
daddr- the destination address (not validated)- Returns:
- the source address
-
mapSourceToDestination
Map a sub-range of the source to the corresponding sub-range of the destination- Parameters:
srng- the source sub-range- Returns:
- the destination sub-range
-
mapDestinationToSource
Map a sub-range of the destination to the corresponding sub-range of the source- Parameters:
drng- the destination sub-range- Returns:
- the source sub-range
-
getSourceAddressRange
Get the source address range- Returns:
- the address range
-
getDestinationAddressRange
Get the destination address range- Returns:
- the address range
-
compareTo
- Specified by:
compareToin interfaceComparable<DebuggerStaticMappingService.MappedAddressRange>
-
equals
-
hashCode
public int hashCode()
-