Package ghidra.program.model.address
Class AddressRangeChunker
java.lang.Object
ghidra.program.model.address.AddressRangeChunker
- All Implemented Interfaces:
Iterable<AddressRange>
A class to break a range of addresses into 'chunks' of a give size. This is useful to
break-up processing of large swaths of addresses, such as when performing work in a
background thread. Doing this allows the client to iterator over the range, pausing
enough to allow the UI to update.
-
Constructor Summary
ConstructorDescriptionAddressRangeChunker
(AddressRange range, int chunkSize) AddressRangeChunker
(Address start, Address end, int chunkSize) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AddressRangeChunker
- Throws:
IllegalArgumentException
-
AddressRangeChunker
public AddressRangeChunker(Address start, Address end, int chunkSize) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<AddressRange>
-