- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
86 lines
2.4 KiB
Java
86 lines
2.4 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import java.io.OutputStream;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzgwh extends OutputStream {
|
|
private static final byte[] zza = new byte[0];
|
|
private int zzd;
|
|
private int zzf;
|
|
private final int zzb = 128;
|
|
private final ArrayList zzc = new ArrayList();
|
|
private byte[] zze = new byte[128];
|
|
|
|
public zzgwh(int i) {
|
|
}
|
|
|
|
private final void zzc(int i) {
|
|
this.zzc.add(new zzgwg(this.zze));
|
|
int length = this.zzd + this.zze.length;
|
|
this.zzd = length;
|
|
this.zze = new byte[Math.max(this.zzb, Math.max(i, length >>> 1))];
|
|
this.zzf = 0;
|
|
}
|
|
|
|
public final String toString() {
|
|
return String.format("<ByteString.Output@%s size=%d>", Integer.toHexString(System.identityHashCode(this)), Integer.valueOf(zza()));
|
|
}
|
|
|
|
@Override // java.io.OutputStream
|
|
public final synchronized void write(int i) {
|
|
try {
|
|
if (this.zzf == this.zze.length) {
|
|
zzc(1);
|
|
}
|
|
byte[] bArr = this.zze;
|
|
int i2 = this.zzf;
|
|
this.zzf = i2 + 1;
|
|
bArr[i2] = (byte) i;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
public final synchronized int zza() {
|
|
return this.zzd + this.zzf;
|
|
}
|
|
|
|
public final synchronized zzgwj zzb() {
|
|
try {
|
|
int i = this.zzf;
|
|
byte[] bArr = this.zze;
|
|
if (i >= bArr.length) {
|
|
this.zzc.add(new zzgwg(this.zze));
|
|
this.zze = zza;
|
|
} else if (i > 0) {
|
|
this.zzc.add(new zzgwg(Arrays.copyOf(bArr, i)));
|
|
}
|
|
this.zzd += this.zzf;
|
|
this.zzf = 0;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
return zzgwj.zzu(this.zzc);
|
|
}
|
|
|
|
@Override // java.io.OutputStream
|
|
public final synchronized void write(byte[] bArr, int i, int i2) {
|
|
byte[] bArr2 = this.zze;
|
|
int length = bArr2.length;
|
|
int i3 = this.zzf;
|
|
int i4 = length - i3;
|
|
if (i2 <= i4) {
|
|
System.arraycopy(bArr, i, bArr2, i3, i2);
|
|
this.zzf += i2;
|
|
return;
|
|
}
|
|
System.arraycopy(bArr, i, bArr2, i3, i4);
|
|
int i5 = i2 - i4;
|
|
zzc(i5);
|
|
System.arraycopy(bArr, i + i4, this.zze, 0, i5);
|
|
this.zzf = i5;
|
|
}
|
|
}
|