Class MemoryByteIterator

java.lang.Object
ghidra.program.model.util.MemoryByteIterator

public class MemoryByteIterator extends Object
Class to iterate over the bytes in memory for an address set.
  • Constructor Details

    • MemoryByteIterator

      public MemoryByteIterator(Memory mem, AddressSetView set)
      Construct a memoryIterator
      Parameters:
      mem - the memory providing the bytes
      set - the set of addresses for which to iterate bytes
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if there are more bytes to iterate over
    • next

      public byte next() throws MemoryAccessException
      Returns the next byte.
      Throws:
      MemoryAccessException - if the next byte could not be read