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,33 @@
package com.google.android.gms.common.data;
import com.google.android.gms.common.internal.Preconditions;
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 SingleRefDataBufferIterator<T> extends DataBufferIterator<T> {
private Object zac;
public SingleRefDataBufferIterator(DataBuffer dataBuffer) {
super(dataBuffer);
}
@Override // com.google.android.gms.common.data.DataBufferIterator, java.util.Iterator
public final Object next() {
if (!hasNext()) {
throw new NoSuchElementException("Cannot advance the iterator beyond " + this.zab);
}
int i = this.zab + 1;
this.zab = i;
if (i == 0) {
Object objCheckNotNull = Preconditions.checkNotNull(this.zaa.get(0));
this.zac = objCheckNotNull;
if (!(objCheckNotNull instanceof DataBufferRef)) {
throw new IllegalStateException("DataBuffer reference of type " + String.valueOf(objCheckNotNull.getClass()) + " is not movable");
}
} else {
((DataBufferRef) Preconditions.checkNotNull(this.zac)).zaa(this.zab);
}
return this.zac;
}
}