what-the-bank/sources/com/google/android/libraries/places/internal/zzael.java

157 lines
4.3 KiB
Java

package com.google.android.libraries.places.internal;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
/* loaded from: classes2.dex */
public abstract class zzael extends zzadt {
public static final int zzb = 0;
private static final Logger zzc = Logger.getLogger(zzael.class.getName());
private static final boolean zzd = zzahs.zzx();
zzaem zza;
public static int zzA(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 zzB(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) {
j >>>= 14;
i += 2;
}
return (j & (-16384)) != 0 ? i + 1 : i;
}
public static zzael zzC(byte[] bArr) {
return new zzaei(bArr, 0, bArr.length);
}
public static int zzt(zzaed zzaedVar) {
int zzd2 = zzaedVar.zzd();
return zzA(zzd2) + zzd2;
}
/* JADX INFO: Access modifiers changed from: package-private */
@Deprecated
public static int zzu(int i, zzagg zzaggVar, zzagr zzagrVar) {
int zzr = ((zzadq) zzaggVar).zzr(zzagrVar);
int zzA = zzA(i << 3);
return zzA + zzA + zzr;
}
public static int zzw(zzafm zzafmVar) {
int zza = zzafmVar.zza();
return zzA(zza) + zza;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzx(zzagg zzaggVar, zzagr zzagrVar) {
int zzr = ((zzadq) zzaggVar).zzr(zzagrVar);
return zzA(zzr) + zzr;
}
public static int zzy(String str) {
int length;
try {
length = zzahw.zzc(str);
} catch (zzahv unused) {
length = str.getBytes(zzafh.zzb).length;
}
return zzA(length) + length;
}
public final void zzD() {
if (zza() != 0) {
throw new IllegalStateException("Did not write as much data as expected.");
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void zzE(String str, zzahv zzahvVar) throws IOException {
zzc.logp(Level.WARNING, "com.google.protobuf.CodedOutputStream", "inefficientWriteStringNoTag", "Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!", (Throwable) zzahvVar);
byte[] bytes = str.getBytes(zzafh.zzb);
try {
int length = bytes.length;
zzq(length);
zzl(bytes, 0, length);
} catch (IndexOutOfBoundsException e) {
throw new zzaej(e);
}
}
public abstract int zza();
public abstract void zzb(byte b) throws IOException;
public abstract void zzd(int i, boolean z) throws IOException;
public abstract void zze(int i, zzaed zzaedVar) throws IOException;
public abstract void zzf(int i, int i2) throws IOException;
public abstract void zzg(int i) throws IOException;
public abstract void zzh(int i, long j) throws IOException;
public abstract void zzi(long j) throws IOException;
public abstract void zzj(int i, int i2) throws IOException;
public abstract void zzk(int i) throws IOException;
public abstract void zzl(byte[] bArr, int i, int i2) throws IOException;
public abstract void zzm(int i, String str) throws IOException;
public abstract void zzo(int i, int i2) throws IOException;
public abstract void zzp(int i, int i2) throws IOException;
public abstract void zzq(int i) throws IOException;
public abstract void zzr(int i, long j) throws IOException;
public abstract void zzs(long j) throws IOException;
public static int zzz(int i) {
return zzA(i << 3);
}
public static int zzv(int i) {
if (i >= 0) {
return zzA(i);
}
return 10;
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzael(zzaek zzaekVar) {
}
private zzael() {
}
}