Package ghidra.program.model.util
Class MemoryByteIterator
- java.lang.Object
-
- ghidra.program.model.util.MemoryByteIterator
-
public class MemoryByteIterator extends java.lang.ObjectClass to iterate over the bytes in memory for an address set.
-
-
Constructor Summary
Constructors Constructor Description MemoryByteIterator(Memory mem, AddressSetView set)Construct a memoryIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if there are more bytes to iterate overbytenext()Returns the next byte.
-
-
-
Constructor Detail
-
MemoryByteIterator
public MemoryByteIterator(Memory mem, AddressSetView set)
Construct a memoryIterator- Parameters:
mem- the memory providing the bytesset- the set of addresses for which to iterate bytes
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are more bytes to iterate over
-
next
public byte next() throws MemoryAccessExceptionReturns the next byte.- Throws:
MemoryAccessException- if the next byte could not be read
-
-