Package org.jf.dexlib2.dexbacked.util
Class VariableSizeIterator<T>
java.lang.Object
org.jf.dexlib2.dexbacked.util.VariableSizeIterator<T>
- All Implemented Interfaces:
Iterator<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVariableSizeIterator(DexBuffer buffer, int offset, int size) protectedVariableSizeIterator(DexReader reader, int size) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
reader
-
size
protected final int size -
index
private int index
-
-
Constructor Details
-
VariableSizeIterator
-
VariableSizeIterator
-
-
Method Details
-
readNextItem
Reads the next item from reader.- Parameters:
reader- TheDexReaderto read the next item fromindex- The index of the item being read. This is guaranteed to be less thansize- Returns:
- The item that was read
-
getReaderOffset
public int getReaderOffset() -
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-