Initial version -- added millennium read funcionality

This commit is contained in:
Pablo
2026-03-09 22:05:28 +01:00
commit 77c2ded482
2770 changed files with 141927 additions and 0 deletions
@@ -0,0 +1,37 @@
package com.google.android.gms.common.data;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Iterator;
import java.util.NoSuchElementException;
/* JADX INFO: compiled from: com.google.android.gms:play-services-base@@18.4.0 */
/* JADX INFO: loaded from: classes2.dex */
public class DataBufferIterator<T> implements Iterator<T> {
protected final DataBuffer zaa;
protected int zab = -1;
public DataBufferIterator(DataBuffer dataBuffer) {
this.zaa = (DataBuffer) Preconditions.checkNotNull(dataBuffer);
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.zab < this.zaa.getCount() + (-1);
}
@Override // java.util.Iterator
public Object next() {
if (hasNext()) {
DataBuffer dataBuffer = this.zaa;
int i = this.zab + 1;
this.zab = i;
return dataBuffer.get(i);
}
throw new NoSuchElementException("Cannot advance the iterator beyond " + this.zab);
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException("Cannot remove elements from a DataBufferIterator");
}
}