Package ghidra.program.model.address
Class AddressSetMapping
- java.lang.Object
-
- ghidra.program.model.address.AddressSetMapping
-
public class AddressSetMapping extends java.lang.Object
Class that provides random access toAddress
es in anAddressSet
, based on the index of the address in the set, not theaddress offset value
.For instance, a
AddressSet
containing addresses [0,1,2,3,4,90,91,92,93,94],getAddress(1)
will return anAddress
with an offset value of 1, butgetAddress(5)
will return anAddress
instance with an offset value of 90.This collapses a sparse address space with holes into a contiguous list of addresses.
-
-
Constructor Summary
Constructors Constructor Description AddressSetMapping(AddressSetView set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
getAddress(int index)
Returns the Address at the specified position in the AddressSet.
-
-
-
Constructor Detail
-
AddressSetMapping
public AddressSetMapping(AddressSetView set)
-
-
Method Detail
-
getAddress
public Address getAddress(int index)
Returns the Address at the specified position in the AddressSet.- Parameters:
index
- the index into the ordered list of addresses within an AddressSet.- Returns:
- the Address at the specified position.
-
-