1374 lines
44 KiB
Java
1374 lines
44 KiB
Java
package com.google.android.gms.internal.gtm;
|
|
|
|
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
|
import java.io.IOException;
|
|
import java.nio.BufferOverflowException;
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.ByteOrder;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class zzqj extends zzpr {
|
|
private static final Logger logger = Logger.getLogger(zzqj.class.getName());
|
|
private static final boolean zzawt = zztx.zzrm();
|
|
zzql zzawu;
|
|
|
|
/* loaded from: classes2.dex */
|
|
static final class zzb extends zza {
|
|
private final ByteBuffer zzawv;
|
|
private int zzaww;
|
|
|
|
zzb(ByteBuffer byteBuffer) {
|
|
super(byteBuffer.array(), byteBuffer.arrayOffset() + byteBuffer.position(), byteBuffer.remaining());
|
|
this.zzawv = byteBuffer;
|
|
this.zzaww = byteBuffer.position();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj.zza, com.google.android.gms.internal.gtm.zzqj
|
|
public final void flush() {
|
|
this.zzawv.position(this.zzaww + zzok());
|
|
}
|
|
}
|
|
|
|
public static int zzb(float f) {
|
|
return 4;
|
|
}
|
|
|
|
public static int zzbd(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 zzbf(int i) {
|
|
return 4;
|
|
}
|
|
|
|
public static int zzbg(int i) {
|
|
return 4;
|
|
}
|
|
|
|
private static int zzbi(int i) {
|
|
return (i << 1) ^ (i >> 31);
|
|
}
|
|
|
|
public static int zzc(double d) {
|
|
return 8;
|
|
}
|
|
|
|
public static zzqj zzg(byte[] bArr) {
|
|
return new zza(bArr, 0, bArr.length);
|
|
}
|
|
|
|
public static int zzj(boolean z) {
|
|
return 1;
|
|
}
|
|
|
|
public static int zzt(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 int zzv(long j) {
|
|
return 8;
|
|
}
|
|
|
|
public static int zzw(long j) {
|
|
return 8;
|
|
}
|
|
|
|
private static long zzx(long j) {
|
|
return (j << 1) ^ (j >> 63);
|
|
}
|
|
|
|
public abstract void flush() throws IOException;
|
|
|
|
public abstract void write(byte[] bArr, int i, int i2) throws IOException;
|
|
|
|
public abstract void zza(int i, long j) throws IOException;
|
|
|
|
public abstract void zza(int i, zzps zzpsVar) throws IOException;
|
|
|
|
public abstract void zza(int i, zzsk zzskVar) throws IOException;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public abstract void zza(int i, zzsk zzskVar, zzsz zzszVar) throws IOException;
|
|
|
|
public abstract void zza(int i, String str) throws IOException;
|
|
|
|
public abstract void zza(zzps zzpsVar) throws IOException;
|
|
|
|
abstract void zza(zzsk zzskVar, zzsz zzszVar) throws IOException;
|
|
|
|
public abstract void zzax(int i) throws IOException;
|
|
|
|
public abstract void zzay(int i) throws IOException;
|
|
|
|
public abstract void zzb(int i, zzps zzpsVar) throws IOException;
|
|
|
|
public abstract void zzb(int i, zzsk zzskVar) throws IOException;
|
|
|
|
public abstract void zzb(int i, boolean z) throws IOException;
|
|
|
|
public abstract void zzb(zzsk zzskVar) throws IOException;
|
|
|
|
public abstract void zzba(int i) throws IOException;
|
|
|
|
public abstract void zzc(byte b) throws IOException;
|
|
|
|
public abstract void zzc(int i, long j) throws IOException;
|
|
|
|
public abstract void zzcz(String str) throws IOException;
|
|
|
|
public abstract void zzd(int i, int i2) throws IOException;
|
|
|
|
public abstract void zze(int i, int i2) throws IOException;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public abstract void zze(byte[] bArr, int i, int i2) throws IOException;
|
|
|
|
public abstract void zzf(int i, int i2) throws IOException;
|
|
|
|
public abstract void zzh(int i, int i2) throws IOException;
|
|
|
|
public abstract int zzoi();
|
|
|
|
public abstract void zzp(long j) throws IOException;
|
|
|
|
public abstract void zzr(long j) throws IOException;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static final class zzc extends IOException {
|
|
zzc() {
|
|
super("CodedOutputStream was writing to a flat byte array and ran out of space.");
|
|
}
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public zzc(java.lang.String r3) {
|
|
/*
|
|
r2 = this;
|
|
java.lang.String r3 = java.lang.String.valueOf(r3)
|
|
int r0 = r3.length()
|
|
java.lang.String r1 = "CodedOutputStream was writing to a flat byte array and ran out of space.: "
|
|
if (r0 == 0) goto L11
|
|
java.lang.String r3 = r1.concat(r3)
|
|
goto L16
|
|
L11:
|
|
java.lang.String r3 = new java.lang.String
|
|
r3.<init>(r1)
|
|
L16:
|
|
r2.<init>(r3)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzqj.zzc.<init>(java.lang.String):void");
|
|
}
|
|
|
|
zzc(Throwable th) {
|
|
super("CodedOutputStream was writing to a flat byte array and ran out of space.", th);
|
|
}
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public zzc(java.lang.String r3, java.lang.Throwable r4) {
|
|
/*
|
|
r2 = this;
|
|
java.lang.String r3 = java.lang.String.valueOf(r3)
|
|
int r0 = r3.length()
|
|
java.lang.String r1 = "CodedOutputStream was writing to a flat byte array and ran out of space.: "
|
|
if (r0 == 0) goto L11
|
|
java.lang.String r3 = r1.concat(r3)
|
|
goto L16
|
|
L11:
|
|
java.lang.String r3 = new java.lang.String
|
|
r3.<init>(r1)
|
|
L16:
|
|
r2.<init>(r3, r4)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzqj.zzc.<init>(java.lang.String, java.lang.Throwable):void");
|
|
}
|
|
}
|
|
|
|
public static zzqj zza(ByteBuffer byteBuffer) {
|
|
if (byteBuffer.hasArray()) {
|
|
return new zzb(byteBuffer);
|
|
}
|
|
if (byteBuffer.isDirect() && !byteBuffer.isReadOnly()) {
|
|
if (zztx.zzrn()) {
|
|
return new zze(byteBuffer);
|
|
}
|
|
return new zzd(byteBuffer);
|
|
}
|
|
throw new IllegalArgumentException("ByteBuffer is read-only");
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static final class zzd extends zzqj {
|
|
private final int zzaww;
|
|
private final ByteBuffer zzawx;
|
|
private final ByteBuffer zzawy;
|
|
|
|
zzd(ByteBuffer byteBuffer) {
|
|
super();
|
|
this.zzawx = byteBuffer;
|
|
this.zzawy = byteBuffer.duplicate().order(ByteOrder.LITTLE_ENDIAN);
|
|
this.zzaww = byteBuffer.position();
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzd(int i, int i2) throws IOException {
|
|
zzay((i << 3) | i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zze(int i, int i2) throws IOException {
|
|
zzd(i, 0);
|
|
zzax(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzf(int i, int i2) throws IOException {
|
|
zzd(i, 0);
|
|
zzay(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzh(int i, int i2) throws IOException {
|
|
zzd(i, 5);
|
|
zzba(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, long j) throws IOException {
|
|
zzd(i, 0);
|
|
zzp(j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzc(int i, long j) throws IOException {
|
|
zzd(i, 1);
|
|
zzr(j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, boolean z) throws IOException {
|
|
zzd(i, 0);
|
|
zzc(z ? (byte) 1 : (byte) 0);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, String str) throws IOException {
|
|
zzd(i, 2);
|
|
zzcz(str);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, zzps zzpsVar) throws IOException {
|
|
zzd(i, 2);
|
|
zza(zzpsVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, zzsk zzskVar) throws IOException {
|
|
zzd(i, 2);
|
|
zzb(zzskVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
final void zza(int i, zzsk zzskVar, zzsz zzszVar) throws IOException {
|
|
zzd(i, 2);
|
|
zza(zzskVar, zzszVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, zzsk zzskVar) throws IOException {
|
|
zzd(1, 3);
|
|
zzf(2, i);
|
|
zza(3, zzskVar);
|
|
zzd(1, 4);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, zzps zzpsVar) throws IOException {
|
|
zzd(1, 3);
|
|
zzf(2, i);
|
|
zza(3, zzpsVar);
|
|
zzd(1, 4);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(zzsk zzskVar) throws IOException {
|
|
zzay(zzskVar.zzpe());
|
|
zzskVar.zzb(this);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
final void zza(zzsk zzskVar, zzsz zzszVar) throws IOException {
|
|
zzpl zzplVar = (zzpl) zzskVar;
|
|
int zzmw = zzplVar.zzmw();
|
|
if (zzmw == -1) {
|
|
zzmw = zzszVar.zzad(zzplVar);
|
|
zzplVar.zzag(zzmw);
|
|
}
|
|
zzay(zzmw);
|
|
zzszVar.zza(zzskVar, this.zzawu);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzc(byte b) throws IOException {
|
|
try {
|
|
this.zzawy.put(b);
|
|
} catch (BufferOverflowException e) {
|
|
throw new zzc(e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(zzps zzpsVar) throws IOException {
|
|
zzay(zzpsVar.size());
|
|
zzpsVar.zza(this);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zze(byte[] bArr, int i, int i2) throws IOException {
|
|
zzay(i2);
|
|
write(bArr, 0, i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzax(int i) throws IOException {
|
|
if (i >= 0) {
|
|
zzay(i);
|
|
} else {
|
|
zzp(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzay(int i) throws IOException {
|
|
while ((i & (-128)) != 0) {
|
|
try {
|
|
this.zzawy.put((byte) ((i & 127) | 128));
|
|
i >>>= 7;
|
|
} catch (BufferOverflowException e) {
|
|
throw new zzc(e);
|
|
}
|
|
}
|
|
this.zzawy.put((byte) i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzba(int i) throws IOException {
|
|
try {
|
|
this.zzawy.putInt(i);
|
|
} catch (BufferOverflowException e) {
|
|
throw new zzc(e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzp(long j) throws IOException {
|
|
while (((-128) & j) != 0) {
|
|
try {
|
|
this.zzawy.put((byte) ((((int) j) & 127) | 128));
|
|
j >>>= 7;
|
|
} catch (BufferOverflowException e) {
|
|
throw new zzc(e);
|
|
}
|
|
}
|
|
this.zzawy.put((byte) j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzr(long j) throws IOException {
|
|
try {
|
|
this.zzawy.putLong(j);
|
|
} catch (BufferOverflowException e) {
|
|
throw new zzc(e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void write(byte[] bArr, int i, int i2) throws IOException {
|
|
try {
|
|
this.zzawy.put(bArr, i, i2);
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(e);
|
|
} catch (BufferOverflowException e2) {
|
|
throw new zzc(e2);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzpr
|
|
public final void zza(byte[] bArr, int i, int i2) throws IOException {
|
|
write(bArr, i, i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzcz(String str) throws IOException {
|
|
int position = this.zzawy.position();
|
|
try {
|
|
int zzbd = zzbd(str.length() * 3);
|
|
int zzbd2 = zzbd(str.length());
|
|
if (zzbd2 == zzbd) {
|
|
int position2 = this.zzawy.position() + zzbd2;
|
|
this.zzawy.position(position2);
|
|
zzdb(str);
|
|
int position3 = this.zzawy.position();
|
|
this.zzawy.position(position);
|
|
zzay(position3 - position2);
|
|
this.zzawy.position(position3);
|
|
return;
|
|
}
|
|
zzay(zztz.zza(str));
|
|
zzdb(str);
|
|
} catch (zzud e) {
|
|
this.zzawy.position(position);
|
|
zza(str, e);
|
|
} catch (IllegalArgumentException e2) {
|
|
throw new zzc(e2);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void flush() {
|
|
this.zzawx.position(this.zzawy.position());
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final int zzoi() {
|
|
return this.zzawy.remaining();
|
|
}
|
|
|
|
private final void zzdb(String str) throws IOException {
|
|
try {
|
|
zztz.zza(str, this.zzawy);
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(e);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static final class zze extends zzqj {
|
|
private final ByteBuffer zzawx;
|
|
private final ByteBuffer zzawy;
|
|
private final long zzawz;
|
|
private final long zzaxa;
|
|
private final long zzaxb;
|
|
private final long zzaxc;
|
|
private long zzaxd;
|
|
|
|
zze(ByteBuffer byteBuffer) {
|
|
super();
|
|
this.zzawx = byteBuffer;
|
|
this.zzawy = byteBuffer.duplicate().order(ByteOrder.LITTLE_ENDIAN);
|
|
long zzb = zztx.zzb(byteBuffer);
|
|
this.zzawz = zzb;
|
|
long position = byteBuffer.position() + zzb;
|
|
this.zzaxa = position;
|
|
long limit = zzb + byteBuffer.limit();
|
|
this.zzaxb = limit;
|
|
this.zzaxc = limit - 10;
|
|
this.zzaxd = position;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzd(int i, int i2) throws IOException {
|
|
zzay((i << 3) | i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zze(int i, int i2) throws IOException {
|
|
zzd(i, 0);
|
|
zzax(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzf(int i, int i2) throws IOException {
|
|
zzd(i, 0);
|
|
zzay(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzh(int i, int i2) throws IOException {
|
|
zzd(i, 5);
|
|
zzba(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, long j) throws IOException {
|
|
zzd(i, 0);
|
|
zzp(j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzc(int i, long j) throws IOException {
|
|
zzd(i, 1);
|
|
zzr(j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, boolean z) throws IOException {
|
|
zzd(i, 0);
|
|
zzc(z ? (byte) 1 : (byte) 0);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, String str) throws IOException {
|
|
zzd(i, 2);
|
|
zzcz(str);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, zzps zzpsVar) throws IOException {
|
|
zzd(i, 2);
|
|
zza(zzpsVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, zzsk zzskVar) throws IOException {
|
|
zzd(i, 2);
|
|
zzb(zzskVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
final void zza(int i, zzsk zzskVar, zzsz zzszVar) throws IOException {
|
|
zzd(i, 2);
|
|
zza(zzskVar, zzszVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, zzsk zzskVar) throws IOException {
|
|
zzd(1, 3);
|
|
zzf(2, i);
|
|
zza(3, zzskVar);
|
|
zzd(1, 4);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, zzps zzpsVar) throws IOException {
|
|
zzd(1, 3);
|
|
zzf(2, i);
|
|
zza(3, zzpsVar);
|
|
zzd(1, 4);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(zzsk zzskVar) throws IOException {
|
|
zzay(zzskVar.zzpe());
|
|
zzskVar.zzb(this);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
final void zza(zzsk zzskVar, zzsz zzszVar) throws IOException {
|
|
zzpl zzplVar = (zzpl) zzskVar;
|
|
int zzmw = zzplVar.zzmw();
|
|
if (zzmw == -1) {
|
|
zzmw = zzszVar.zzad(zzplVar);
|
|
zzplVar.zzag(zzmw);
|
|
}
|
|
zzay(zzmw);
|
|
zzszVar.zza(zzskVar, this.zzawu);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzc(byte b) throws IOException {
|
|
long j = this.zzaxd;
|
|
long j2 = this.zzaxb;
|
|
if (j >= j2) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Long.valueOf(j), Long.valueOf(j2), 1));
|
|
}
|
|
this.zzaxd = 1 + j;
|
|
zztx.zza(j, b);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(zzps zzpsVar) throws IOException {
|
|
zzay(zzpsVar.size());
|
|
zzpsVar.zza(this);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zze(byte[] bArr, int i, int i2) throws IOException {
|
|
zzay(i2);
|
|
write(bArr, 0, i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzax(int i) throws IOException {
|
|
if (i >= 0) {
|
|
zzay(i);
|
|
} else {
|
|
zzp(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzay(int i) throws IOException {
|
|
if (this.zzaxd <= this.zzaxc) {
|
|
while ((i & (-128)) != 0) {
|
|
long j = this.zzaxd;
|
|
this.zzaxd = j + 1;
|
|
zztx.zza(j, (byte) ((i & 127) | 128));
|
|
i >>>= 7;
|
|
}
|
|
long j2 = this.zzaxd;
|
|
this.zzaxd = 1 + j2;
|
|
zztx.zza(j2, (byte) i);
|
|
return;
|
|
}
|
|
while (true) {
|
|
long j3 = this.zzaxd;
|
|
long j4 = this.zzaxb;
|
|
if (j3 >= j4) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Long.valueOf(j3), Long.valueOf(j4), 1));
|
|
}
|
|
if ((i & (-128)) == 0) {
|
|
this.zzaxd = 1 + j3;
|
|
zztx.zza(j3, (byte) i);
|
|
return;
|
|
} else {
|
|
this.zzaxd = j3 + 1;
|
|
zztx.zza(j3, (byte) ((i & 127) | 128));
|
|
i >>>= 7;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzba(int i) throws IOException {
|
|
this.zzawy.putInt((int) (this.zzaxd - this.zzawz), i);
|
|
this.zzaxd += 4;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzp(long j) throws IOException {
|
|
if (this.zzaxd <= this.zzaxc) {
|
|
while ((j & (-128)) != 0) {
|
|
long j2 = this.zzaxd;
|
|
this.zzaxd = j2 + 1;
|
|
zztx.zza(j2, (byte) ((((int) j) & 127) | 128));
|
|
j >>>= 7;
|
|
}
|
|
long j3 = this.zzaxd;
|
|
this.zzaxd = 1 + j3;
|
|
zztx.zza(j3, (byte) j);
|
|
return;
|
|
}
|
|
while (true) {
|
|
long j4 = this.zzaxd;
|
|
long j5 = this.zzaxb;
|
|
if (j4 >= j5) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Long.valueOf(j4), Long.valueOf(j5), 1));
|
|
}
|
|
if ((j & (-128)) == 0) {
|
|
this.zzaxd = 1 + j4;
|
|
zztx.zza(j4, (byte) j);
|
|
return;
|
|
} else {
|
|
this.zzaxd = j4 + 1;
|
|
zztx.zza(j4, (byte) ((((int) j) & 127) | 128));
|
|
j >>>= 7;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzr(long j) throws IOException {
|
|
this.zzawy.putLong((int) (this.zzaxd - this.zzawz), j);
|
|
this.zzaxd += 8;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void write(byte[] bArr, int i, int i2) throws IOException {
|
|
if (bArr != null && i >= 0 && i2 >= 0 && bArr.length - i2 >= i) {
|
|
long j = this.zzaxb;
|
|
long j2 = i2;
|
|
long j3 = this.zzaxd;
|
|
if (j - j2 >= j3) {
|
|
zztx.zza(bArr, i, j3, j2);
|
|
this.zzaxd += j2;
|
|
return;
|
|
}
|
|
}
|
|
if (bArr == null) {
|
|
throw new NullPointerException(AppMeasurementSdk.ConditionalUserProperty.VALUE);
|
|
}
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Long.valueOf(this.zzaxd), Long.valueOf(this.zzaxb), Integer.valueOf(i2)));
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzpr
|
|
public final void zza(byte[] bArr, int i, int i2) throws IOException {
|
|
write(bArr, i, i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzcz(String str) throws IOException {
|
|
long j = this.zzaxd;
|
|
try {
|
|
int zzbd = zzbd(str.length() * 3);
|
|
int zzbd2 = zzbd(str.length());
|
|
if (zzbd2 == zzbd) {
|
|
int i = ((int) (this.zzaxd - this.zzawz)) + zzbd2;
|
|
this.zzawy.position(i);
|
|
zztz.zza(str, this.zzawy);
|
|
int position = this.zzawy.position() - i;
|
|
zzay(position);
|
|
this.zzaxd += position;
|
|
return;
|
|
}
|
|
int zza = zztz.zza(str);
|
|
zzay(zza);
|
|
zzy(this.zzaxd);
|
|
zztz.zza(str, this.zzawy);
|
|
this.zzaxd += zza;
|
|
} catch (zzud e) {
|
|
this.zzaxd = j;
|
|
zzy(j);
|
|
zza(str, e);
|
|
} catch (IllegalArgumentException e2) {
|
|
throw new zzc(e2);
|
|
} catch (IndexOutOfBoundsException e3) {
|
|
throw new zzc(e3);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void flush() {
|
|
this.zzawx.position((int) (this.zzaxd - this.zzawz));
|
|
}
|
|
|
|
private final void zzy(long j) {
|
|
this.zzawy.position((int) (j - this.zzawz));
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final int zzoi() {
|
|
return (int) (this.zzaxb - this.zzaxd);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static class zza extends zzqj {
|
|
private final byte[] buffer;
|
|
private final int limit;
|
|
private final int offset;
|
|
private int position;
|
|
|
|
zza(byte[] bArr, int i, int i2) {
|
|
super();
|
|
if (bArr == null) {
|
|
throw new NullPointerException("buffer");
|
|
}
|
|
int i3 = i + i2;
|
|
if (((bArr.length - i3) | i | i2) < 0) {
|
|
throw new IllegalArgumentException(String.format("Array range is invalid. Buffer.length=%d, offset=%d, length=%d", Integer.valueOf(bArr.length), Integer.valueOf(i), Integer.valueOf(i2)));
|
|
}
|
|
this.buffer = bArr;
|
|
this.offset = i;
|
|
this.position = i;
|
|
this.limit = i3;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public void flush() {
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzd(int i, int i2) throws IOException {
|
|
zzay((i << 3) | i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zze(int i, int i2) throws IOException {
|
|
zzd(i, 0);
|
|
zzax(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzf(int i, int i2) throws IOException {
|
|
zzd(i, 0);
|
|
zzay(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzh(int i, int i2) throws IOException {
|
|
zzd(i, 5);
|
|
zzba(i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, long j) throws IOException {
|
|
zzd(i, 0);
|
|
zzp(j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzc(int i, long j) throws IOException {
|
|
zzd(i, 1);
|
|
zzr(j);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, boolean z) throws IOException {
|
|
zzd(i, 0);
|
|
zzc(z ? (byte) 1 : (byte) 0);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, String str) throws IOException {
|
|
zzd(i, 2);
|
|
zzcz(str);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, zzps zzpsVar) throws IOException {
|
|
zzd(i, 2);
|
|
zza(zzpsVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(zzps zzpsVar) throws IOException {
|
|
zzay(zzpsVar.size());
|
|
zzpsVar.zza(this);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zze(byte[] bArr, int i, int i2) throws IOException {
|
|
zzay(i2);
|
|
write(bArr, 0, i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zza(int i, zzsk zzskVar) throws IOException {
|
|
zzd(i, 2);
|
|
zzb(zzskVar);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
final void zza(int i, zzsk zzskVar, zzsz zzszVar) throws IOException {
|
|
zzd(i, 2);
|
|
zzpl zzplVar = (zzpl) zzskVar;
|
|
int zzmw = zzplVar.zzmw();
|
|
if (zzmw == -1) {
|
|
zzmw = zzszVar.zzad(zzplVar);
|
|
zzplVar.zzag(zzmw);
|
|
}
|
|
zzay(zzmw);
|
|
zzszVar.zza(zzskVar, this.zzawu);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, zzsk zzskVar) throws IOException {
|
|
zzd(1, 3);
|
|
zzf(2, i);
|
|
zza(3, zzskVar);
|
|
zzd(1, 4);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(int i, zzps zzpsVar) throws IOException {
|
|
zzd(1, 3);
|
|
zzf(2, i);
|
|
zza(3, zzpsVar);
|
|
zzd(1, 4);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzb(zzsk zzskVar) throws IOException {
|
|
zzay(zzskVar.zzpe());
|
|
zzskVar.zzb(this);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
final void zza(zzsk zzskVar, zzsz zzszVar) throws IOException {
|
|
zzpl zzplVar = (zzpl) zzskVar;
|
|
int zzmw = zzplVar.zzmw();
|
|
if (zzmw == -1) {
|
|
zzmw = zzszVar.zzad(zzplVar);
|
|
zzplVar.zzag(zzmw);
|
|
}
|
|
zzay(zzmw);
|
|
zzszVar.zza(zzskVar, this.zzawu);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzc(byte b) throws IOException {
|
|
try {
|
|
byte[] bArr = this.buffer;
|
|
int i = this.position;
|
|
this.position = i + 1;
|
|
bArr[i] = b;
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(this.position), Integer.valueOf(this.limit), 1), e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzax(int i) throws IOException {
|
|
if (i >= 0) {
|
|
zzay(i);
|
|
} else {
|
|
zzp(i);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzay(int i) throws IOException {
|
|
if (!zzqj.zzawt || zzpp.zzna() || zzoi() < 5) {
|
|
while ((i & (-128)) != 0) {
|
|
try {
|
|
byte[] bArr = this.buffer;
|
|
int i2 = this.position;
|
|
this.position = i2 + 1;
|
|
bArr[i2] = (byte) ((i & 127) | 128);
|
|
i >>>= 7;
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(this.position), Integer.valueOf(this.limit), 1), e);
|
|
}
|
|
}
|
|
byte[] bArr2 = this.buffer;
|
|
int i3 = this.position;
|
|
this.position = i3 + 1;
|
|
bArr2[i3] = (byte) i;
|
|
return;
|
|
}
|
|
if ((i & (-128)) == 0) {
|
|
byte[] bArr3 = this.buffer;
|
|
int i4 = this.position;
|
|
this.position = i4 + 1;
|
|
zztx.zza(bArr3, i4, (byte) i);
|
|
return;
|
|
}
|
|
byte[] bArr4 = this.buffer;
|
|
int i5 = this.position;
|
|
this.position = i5 + 1;
|
|
zztx.zza(bArr4, i5, (byte) (i | 128));
|
|
int i6 = i >>> 7;
|
|
if ((i6 & (-128)) == 0) {
|
|
byte[] bArr5 = this.buffer;
|
|
int i7 = this.position;
|
|
this.position = i7 + 1;
|
|
zztx.zza(bArr5, i7, (byte) i6);
|
|
return;
|
|
}
|
|
byte[] bArr6 = this.buffer;
|
|
int i8 = this.position;
|
|
this.position = i8 + 1;
|
|
zztx.zza(bArr6, i8, (byte) (i6 | 128));
|
|
int i9 = i >>> 14;
|
|
if ((i9 & (-128)) == 0) {
|
|
byte[] bArr7 = this.buffer;
|
|
int i10 = this.position;
|
|
this.position = i10 + 1;
|
|
zztx.zza(bArr7, i10, (byte) i9);
|
|
return;
|
|
}
|
|
byte[] bArr8 = this.buffer;
|
|
int i11 = this.position;
|
|
this.position = i11 + 1;
|
|
zztx.zza(bArr8, i11, (byte) (i9 | 128));
|
|
int i12 = i >>> 21;
|
|
if ((i12 & (-128)) == 0) {
|
|
byte[] bArr9 = this.buffer;
|
|
int i13 = this.position;
|
|
this.position = i13 + 1;
|
|
zztx.zza(bArr9, i13, (byte) i12);
|
|
return;
|
|
}
|
|
byte[] bArr10 = this.buffer;
|
|
int i14 = this.position;
|
|
this.position = i14 + 1;
|
|
zztx.zza(bArr10, i14, (byte) (i12 | 128));
|
|
byte[] bArr11 = this.buffer;
|
|
int i15 = this.position;
|
|
this.position = i15 + 1;
|
|
zztx.zza(bArr11, i15, (byte) (i >>> 28));
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzba(int i) throws IOException {
|
|
try {
|
|
byte[] bArr = this.buffer;
|
|
int i2 = this.position;
|
|
bArr[i2] = (byte) i;
|
|
bArr[i2 + 1] = (byte) (i >> 8);
|
|
bArr[i2 + 2] = (byte) (i >> 16);
|
|
this.position = i2 + 4;
|
|
bArr[i2 + 3] = (byte) (i >>> 24);
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(this.position), Integer.valueOf(this.limit), 1), e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzp(long j) throws IOException {
|
|
if (zzqj.zzawt && zzoi() >= 10) {
|
|
while ((j & (-128)) != 0) {
|
|
byte[] bArr = this.buffer;
|
|
int i = this.position;
|
|
this.position = i + 1;
|
|
zztx.zza(bArr, i, (byte) ((((int) j) & 127) | 128));
|
|
j >>>= 7;
|
|
}
|
|
byte[] bArr2 = this.buffer;
|
|
int i2 = this.position;
|
|
this.position = i2 + 1;
|
|
zztx.zza(bArr2, i2, (byte) j);
|
|
return;
|
|
}
|
|
while ((j & (-128)) != 0) {
|
|
try {
|
|
byte[] bArr3 = this.buffer;
|
|
int i3 = this.position;
|
|
this.position = i3 + 1;
|
|
bArr3[i3] = (byte) ((((int) j) & 127) | 128);
|
|
j >>>= 7;
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(this.position), Integer.valueOf(this.limit), 1), e);
|
|
}
|
|
}
|
|
byte[] bArr4 = this.buffer;
|
|
int i4 = this.position;
|
|
this.position = i4 + 1;
|
|
bArr4[i4] = (byte) j;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzr(long j) throws IOException {
|
|
try {
|
|
byte[] bArr = this.buffer;
|
|
int i = this.position;
|
|
bArr[i] = (byte) j;
|
|
bArr[i + 1] = (byte) (j >> 8);
|
|
bArr[i + 2] = (byte) (j >> 16);
|
|
bArr[i + 3] = (byte) (j >> 24);
|
|
bArr[i + 4] = (byte) (j >> 32);
|
|
bArr[i + 5] = (byte) (j >> 40);
|
|
bArr[i + 6] = (byte) (j >> 48);
|
|
this.position = i + 8;
|
|
bArr[i + 7] = (byte) (j >> 56);
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(this.position), Integer.valueOf(this.limit), 1), e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void write(byte[] bArr, int i, int i2) throws IOException {
|
|
try {
|
|
System.arraycopy(bArr, i, this.buffer, this.position, i2);
|
|
this.position += i2;
|
|
} catch (IndexOutOfBoundsException e) {
|
|
throw new zzc(String.format("Pos: %d, limit: %d, len: %d", Integer.valueOf(this.position), Integer.valueOf(this.limit), Integer.valueOf(i2)), e);
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzpr
|
|
public final void zza(byte[] bArr, int i, int i2) throws IOException {
|
|
write(bArr, i, i2);
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final void zzcz(String str) throws IOException {
|
|
int i = this.position;
|
|
try {
|
|
int zzbd = zzbd(str.length() * 3);
|
|
int zzbd2 = zzbd(str.length());
|
|
if (zzbd2 == zzbd) {
|
|
int i2 = i + zzbd2;
|
|
this.position = i2;
|
|
int zza = zztz.zza(str, this.buffer, i2, zzoi());
|
|
this.position = i;
|
|
zzay((zza - i) - zzbd2);
|
|
this.position = zza;
|
|
return;
|
|
}
|
|
zzay(zztz.zza(str));
|
|
this.position = zztz.zza(str, this.buffer, this.position, zzoi());
|
|
} catch (zzud e) {
|
|
this.position = i;
|
|
zza(str, e);
|
|
} catch (IndexOutOfBoundsException e2) {
|
|
throw new zzc(e2);
|
|
}
|
|
}
|
|
|
|
public final int zzok() {
|
|
return this.position - this.offset;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.gtm.zzqj
|
|
public final int zzoi() {
|
|
return this.limit - this.position;
|
|
}
|
|
}
|
|
|
|
private zzqj() {
|
|
}
|
|
|
|
public final void zzg(int i, int i2) throws IOException {
|
|
zzf(i, zzbi(i2));
|
|
}
|
|
|
|
public final void zzb(int i, long j) throws IOException {
|
|
zza(i, zzx(j));
|
|
}
|
|
|
|
public final void zza(int i, float f) throws IOException {
|
|
zzh(i, Float.floatToRawIntBits(f));
|
|
}
|
|
|
|
public final void zza(int i, double d) throws IOException {
|
|
zzc(i, Double.doubleToRawLongBits(d));
|
|
}
|
|
|
|
public final void zzaz(int i) throws IOException {
|
|
zzay(zzbi(i));
|
|
}
|
|
|
|
public final void zzq(long j) throws IOException {
|
|
zzp(zzx(j));
|
|
}
|
|
|
|
public final void zza(float f) throws IOException {
|
|
zzba(Float.floatToRawIntBits(f));
|
|
}
|
|
|
|
public final void zzb(double d) throws IOException {
|
|
zzr(Double.doubleToRawLongBits(d));
|
|
}
|
|
|
|
public final void zzi(boolean z) throws IOException {
|
|
zzc(z ? (byte) 1 : (byte) 0);
|
|
}
|
|
|
|
public static int zzi(int i, int i2) {
|
|
return zzbb(i) + zzbc(i2);
|
|
}
|
|
|
|
public static int zzj(int i, int i2) {
|
|
return zzbb(i) + zzbd(i2);
|
|
}
|
|
|
|
public static int zzk(int i, int i2) {
|
|
return zzbb(i) + zzbd(zzbi(i2));
|
|
}
|
|
|
|
public static int zzl(int i, int i2) {
|
|
return zzbb(i) + 4;
|
|
}
|
|
|
|
public static int zzm(int i, int i2) {
|
|
return zzbb(i) + 4;
|
|
}
|
|
|
|
public static int zzd(int i, long j) {
|
|
return zzbb(i) + zzt(j);
|
|
}
|
|
|
|
public static int zze(int i, long j) {
|
|
return zzbb(i) + zzt(j);
|
|
}
|
|
|
|
public static int zzf(int i, long j) {
|
|
return zzbb(i) + zzt(zzx(j));
|
|
}
|
|
|
|
public static int zzg(int i, long j) {
|
|
return zzbb(i) + 8;
|
|
}
|
|
|
|
public static int zzh(int i, long j) {
|
|
return zzbb(i) + 8;
|
|
}
|
|
|
|
public static int zzb(int i, float f) {
|
|
return zzbb(i) + 4;
|
|
}
|
|
|
|
public static int zzb(int i, double d) {
|
|
return zzbb(i) + 8;
|
|
}
|
|
|
|
public static int zzc(int i, boolean z) {
|
|
return zzbb(i) + 1;
|
|
}
|
|
|
|
public static int zzn(int i, int i2) {
|
|
return zzbb(i) + zzbc(i2);
|
|
}
|
|
|
|
public static int zzb(int i, String str) {
|
|
return zzbb(i) + zzda(str);
|
|
}
|
|
|
|
public static int zzc(int i, zzps zzpsVar) {
|
|
int zzbb = zzbb(i);
|
|
int size = zzpsVar.size();
|
|
return zzbb + zzbd(size) + size;
|
|
}
|
|
|
|
public static int zza(int i, zzrr zzrrVar) {
|
|
int zzbb = zzbb(i);
|
|
int zzpe = zzrrVar.zzpe();
|
|
return zzbb + zzbd(zzpe) + zzpe;
|
|
}
|
|
|
|
public static int zzc(int i, zzsk zzskVar) {
|
|
return zzbb(i) + zzc(zzskVar);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int zzb(int i, zzsk zzskVar, zzsz zzszVar) {
|
|
return zzbb(i) + zzb(zzskVar, zzszVar);
|
|
}
|
|
|
|
public static int zzd(int i, zzsk zzskVar) {
|
|
return (zzbb(1) << 1) + zzj(2, i) + zzc(3, zzskVar);
|
|
}
|
|
|
|
public static int zzd(int i, zzps zzpsVar) {
|
|
return (zzbb(1) << 1) + zzj(2, i) + zzc(3, zzpsVar);
|
|
}
|
|
|
|
public static int zzb(int i, zzrr zzrrVar) {
|
|
return (zzbb(1) << 1) + zzj(2, i) + zza(3, zzrrVar);
|
|
}
|
|
|
|
public static int zzbb(int i) {
|
|
return zzbd(i << 3);
|
|
}
|
|
|
|
public static int zzbc(int i) {
|
|
if (i >= 0) {
|
|
return zzbd(i);
|
|
}
|
|
return 10;
|
|
}
|
|
|
|
public static int zzbe(int i) {
|
|
return zzbd(zzbi(i));
|
|
}
|
|
|
|
public static int zzs(long j) {
|
|
return zzt(j);
|
|
}
|
|
|
|
public static int zzu(long j) {
|
|
return zzt(zzx(j));
|
|
}
|
|
|
|
public static int zzbh(int i) {
|
|
return zzbc(i);
|
|
}
|
|
|
|
public static int zzda(String str) {
|
|
int length;
|
|
try {
|
|
length = zztz.zza(str);
|
|
} catch (zzud unused) {
|
|
length = str.getBytes(zzre.UTF_8).length;
|
|
}
|
|
return zzbd(length) + length;
|
|
}
|
|
|
|
public static int zza(zzrr zzrrVar) {
|
|
int zzpe = zzrrVar.zzpe();
|
|
return zzbd(zzpe) + zzpe;
|
|
}
|
|
|
|
public static int zzb(zzps zzpsVar) {
|
|
int size = zzpsVar.size();
|
|
return zzbd(size) + size;
|
|
}
|
|
|
|
public static int zzh(byte[] bArr) {
|
|
int length = bArr.length;
|
|
return zzbd(length) + length;
|
|
}
|
|
|
|
public static int zzc(zzsk zzskVar) {
|
|
int zzpe = zzskVar.zzpe();
|
|
return zzbd(zzpe) + zzpe;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int zzb(zzsk zzskVar, zzsz zzszVar) {
|
|
zzpl zzplVar = (zzpl) zzskVar;
|
|
int zzmw = zzplVar.zzmw();
|
|
if (zzmw == -1) {
|
|
zzmw = zzszVar.zzad(zzplVar);
|
|
zzplVar.zzag(zzmw);
|
|
}
|
|
return zzbd(zzmw) + zzmw;
|
|
}
|
|
|
|
final void zza(String str, zzud zzudVar) throws IOException {
|
|
logger.logp(Level.WARNING, "com.google.protobuf.CodedOutputStream", "inefficientWriteStringNoTag", "Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!", (Throwable) zzudVar);
|
|
byte[] bytes = str.getBytes(zzre.UTF_8);
|
|
try {
|
|
zzay(bytes.length);
|
|
zza(bytes, 0, bytes.length);
|
|
} catch (zzc e) {
|
|
throw e;
|
|
} catch (IndexOutOfBoundsException e2) {
|
|
throw new zzc(e2);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Deprecated
|
|
public static int zzc(int i, zzsk zzskVar, zzsz zzszVar) {
|
|
int zzbb = zzbb(i);
|
|
zzpl zzplVar = (zzpl) zzskVar;
|
|
int zzmw = zzplVar.zzmw();
|
|
if (zzmw == -1) {
|
|
zzmw = zzszVar.zzad(zzplVar);
|
|
zzplVar.zzag(zzmw);
|
|
}
|
|
return (zzbb << 1) + zzmw;
|
|
}
|
|
|
|
@Deprecated
|
|
public static int zzd(zzsk zzskVar) {
|
|
return zzskVar.zzpe();
|
|
}
|
|
|
|
@Deprecated
|
|
public static int zzbj(int i) {
|
|
return zzbd(i);
|
|
}
|
|
}
|