Package ghidra.program.model.address
Class AddressRangeChunker
- java.lang.Object
-
- ghidra.program.model.address.AddressRangeChunker
-
- All Implemented Interfaces:
java.lang.Iterable<AddressRange>
public class AddressRangeChunker extends java.lang.Object implements java.lang.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
Constructors Constructor Description AddressRangeChunker(AddressRange range, int chunkSize)
AddressRangeChunker(Address start, Address end, int chunkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<AddressRange>
iterator()
-
-
-
Constructor Detail
-
AddressRangeChunker
public AddressRangeChunker(AddressRange range, int chunkSize) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
iterator
public java.util.Iterator<AddressRange> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<AddressRange>
-
-