jimu-decompiled/sources/com/google/android/gms/internal/measurement/zzyc.java
2025-05-13 19:24:51 +02:00

67 lines
1.9 KiB
Java

package com.google.android.gms.internal.measurement;
import com.google.android.gms.internal.measurement.zzyc;
import java.io.IOException;
/* loaded from: classes.dex */
public abstract class zzyc<M extends zzyc<M>> extends zzyi {
protected zzye b;
@Override // com.google.android.gms.internal.measurement.zzyi
protected int a() {
if (this.b == null) {
return 0;
}
int i = 0;
for (int i2 = 0; i2 < this.b.b(); i2++) {
i += this.b.b(i2).a();
}
return i;
}
@Override // com.google.android.gms.internal.measurement.zzyi
/* renamed from: c */
public final /* synthetic */ zzyi clone() throws CloneNotSupportedException {
return (zzyc) clone();
}
@Override // com.google.android.gms.internal.measurement.zzyi
public /* synthetic */ Object clone() throws CloneNotSupportedException {
zzyc zzycVar = (zzyc) super.clone();
zzyg.a(this, zzycVar);
return zzycVar;
}
@Override // com.google.android.gms.internal.measurement.zzyi
public void a(zzya zzyaVar) throws IOException {
if (this.b == null) {
return;
}
for (int i = 0; i < this.b.b(); i++) {
this.b.b(i).a(zzyaVar);
}
}
protected final boolean a(zzxz zzxzVar, int i) throws IOException {
int a = zzxzVar.a();
if (!zzxzVar.b(i)) {
return false;
}
int i2 = i >>> 3;
zzyk zzykVar = new zzyk(i, zzxzVar.a(a, zzxzVar.a() - a));
zzyf zzyfVar = null;
zzye zzyeVar = this.b;
if (zzyeVar == null) {
this.b = new zzye();
} else {
zzyfVar = zzyeVar.a(i2);
}
if (zzyfVar == null) {
zzyfVar = new zzyf();
this.b.a(i2, zzyfVar);
}
zzyfVar.a(zzykVar);
return true;
}
}