what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzacn.java

174 lines
4.8 KiB
Java

package com.google.android.gms.internal.p002firebaseauthapi;
import java.io.IOException;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
/* loaded from: classes2.dex */
public abstract class zzacn extends zzabs {
private static final Logger zza = Logger.getLogger(zzacn.class.getName());
private static final boolean zzb = zzafx.zzx();
zzaco zze;
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzA(zzaek zzaekVar, zzaew zzaewVar) {
int zzn = ((zzabm) zzaekVar).zzn(zzaewVar);
return zzE(zzn) + zzn;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzB(int i) {
if (i > 4096) {
return 4096;
}
return i;
}
public static int zzC(String str) {
int length;
try {
length = zzagc.zzc(str);
} catch (zzagb unused) {
length = str.getBytes(zzadl.zzb).length;
}
return zzE(length) + length;
}
public static int zzE(int i) {
if ((i & (-128)) == 0) {
return 1;
}
if ((i & (-16384)) == 0) {
return 2;
}
if (((-2097152) & i) == 0) {
return 3;
}
return (i & (-268435456)) == 0 ? 4 : 5;
}
public static int zzF(long j) {
int i;
if (((-128) & j) == 0) {
return 1;
}
if (j < 0) {
return 10;
}
if (((-34359738368L) & j) != 0) {
j >>>= 28;
i = 6;
} else {
i = 2;
}
if (((-2097152) & j) != 0) {
i += 2;
j >>>= 14;
}
return (j & (-16384)) != 0 ? i + 1 : i;
}
public static zzacn zzG(byte[] bArr) {
return new zzacj(bArr, 0, bArr.length);
}
public static zzacn zzH(OutputStream outputStream, int i) {
return new zzacl(outputStream, i);
}
public static int zzw(zzacc zzaccVar) {
int zzd = zzaccVar.zzd();
return zzE(zzd) + zzd;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Deprecated
public static int zzx(int i, zzaek zzaekVar, zzaew zzaewVar) {
int zzE = zzE(i << 3);
return zzE + zzE + ((zzabm) zzaekVar).zzn(zzaewVar);
}
public static int zzz(zzadq zzadqVar) {
int zza2 = zzadqVar.zza();
return zzE(zza2) + zza2;
}
public final void zzI() {
if (zzb() != 0) {
throw new IllegalStateException("Did not write as much data as expected.");
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzJ(String str, zzagb zzagbVar) throws IOException {
zza.logp(Level.WARNING, "com.google.protobuf.CodedOutputStream", "inefficientWriteStringNoTag", "Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!", (Throwable) zzagbVar);
byte[] bytes = str.getBytes(zzadl.zzb);
try {
int length = bytes.length;
zzs(length);
zza(bytes, 0, length);
} catch (IndexOutOfBoundsException e) {
throw new zzack(e);
}
}
public abstract void zzN() throws IOException;
public abstract void zzO(byte b) throws IOException;
public abstract void zzP(int i, boolean z) throws IOException;
public abstract void zzQ(int i, zzacc zzaccVar) throws IOException;
@Override // com.google.android.gms.internal.p002firebaseauthapi.zzabs
public abstract void zza(byte[] bArr, int i, int i2) throws IOException;
public abstract int zzb();
public abstract void zzh(int i, int i2) throws IOException;
public abstract void zzi(int i) throws IOException;
public abstract void zzj(int i, long j) throws IOException;
public abstract void zzk(long j) throws IOException;
public abstract void zzl(int i, int i2) throws IOException;
public abstract void zzm(int i) throws IOException;
/* JADX INFO: Access modifiers changed from: package-private */
public abstract void zzn(int i, zzaek zzaekVar, zzaew zzaewVar) throws IOException;
public abstract void zzo(int i, String str) throws IOException;
public abstract void zzq(int i, int i2) throws IOException;
public abstract void zzr(int i, int i2) throws IOException;
public abstract void zzs(int i) throws IOException;
public abstract void zzt(int i, long j) throws IOException;
public abstract void zzu(long j) throws IOException;
public static int zzy(int i) {
if (i >= 0) {
return zzE(i);
}
return 10;
}
public static int zzD(int i) {
return zzE(i << 3);
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzacn(zzacm zzacmVar) {
}
private zzacn() {
}
}