Class AddressRangeSplitter

java.lang.Object
ghidra.program.model.address.AddressRangeSplitter
All Implemented Interfaces:
AddressRangeIterator, Iterable<AddressRange>, Iterator<AddressRange>

public class AddressRangeSplitter extends Object implements AddressRangeIterator
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 Details

    • AddressRangeSplitter

      public AddressRangeSplitter(AddressRange range, int splitSize, boolean forward)
      Constructor
      Parameters:
      range - the address range to split apart
      splitSize - the max size of each sub range
      forward - if true, the sub ranges will be returned in address order; otherwise they will be returned in reverse address order.
  • Method Details