Package ghidra.program.model.address
Class AddressRangeSplitter
java.lang.Object
ghidra.program.model.address.AddressRangeSplitter
- All Implemented Interfaces:
AddressRangeIterator
,Iterable<AddressRange>
,Iterator<AddressRange>
AddressRangeIterator
that takes a single address range and breaks it down into smaller
address ranges of a specified maximum size. This is useful for clients that want to break
down the processing of large address ranges into manageable chunks. For example, searching the
bytes in memory can be broken so that chunks can be read into reasonably sized buffers.-
Constructor Summary
ConstructorDescriptionAddressRangeSplitter
(AddressRange range, int splitSize, boolean forward) Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.program.model.address.AddressRangeIterator
iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
AddressRangeSplitter
Constructor- Parameters:
range
- the address range to split apartsplitSize
- the max size of each sub rangeforward
- if true, the sub ranges will be returned in address order; otherwise they will be returned in reverse address order.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<AddressRange>
-
next
- Specified by:
next
in interfaceIterator<AddressRange>
-