- 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
55 lines
1.4 KiB
Java
55 lines
1.4 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import java.io.FilterInputStream;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
|
|
/* loaded from: classes3.dex */
|
|
final class zzgvq extends FilterInputStream {
|
|
private int zza;
|
|
|
|
public zzgvq(InputStream inputStream, int i) {
|
|
super(inputStream);
|
|
this.zza = i;
|
|
}
|
|
|
|
@Override // java.io.FilterInputStream, java.io.InputStream
|
|
public final int available() throws IOException {
|
|
return Math.min(super.available(), this.zza);
|
|
}
|
|
|
|
@Override // java.io.FilterInputStream, java.io.InputStream
|
|
public final int read() throws IOException {
|
|
if (this.zza <= 0) {
|
|
return -1;
|
|
}
|
|
int read = super.read();
|
|
if (read >= 0) {
|
|
this.zza--;
|
|
}
|
|
return read;
|
|
}
|
|
|
|
@Override // java.io.FilterInputStream, java.io.InputStream
|
|
public final long skip(long j) throws IOException {
|
|
int skip = (int) super.skip(Math.min(j, this.zza));
|
|
if (skip >= 0) {
|
|
this.zza -= skip;
|
|
}
|
|
return skip;
|
|
}
|
|
|
|
@Override // java.io.FilterInputStream, java.io.InputStream
|
|
public final int read(byte[] bArr, int i, int i2) throws IOException {
|
|
int i3 = this.zza;
|
|
if (i3 <= 0) {
|
|
return -1;
|
|
}
|
|
int read = super.read(bArr, i, Math.min(i2, i3));
|
|
if (read >= 0) {
|
|
this.zza -= read;
|
|
}
|
|
return read;
|
|
}
|
|
}
|