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
ConstructorsConstructorDescriptionAddressRangeChunker
(AddressRange range, int chunkSize) AddressRangeChunker
(Address start, Address end, int chunkSize) -
Method Summary
-
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>
-
spliterator
- Specified by:
spliterator
in interfaceIterable<AddressRange>
-
stream
Stream the chunks- Returns:
- the stream
-