- 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
61 lines
1.3 KiB
Java
61 lines
1.3 KiB
Java
package com.applovin.impl;
|
|
|
|
import java.io.InputStream;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class k5 extends InputStream {
|
|
private final i5 a;
|
|
private final l5 b;
|
|
private long f;
|
|
private boolean d = false;
|
|
private boolean e = false;
|
|
private final byte[] c = new byte[1];
|
|
|
|
public k5(i5 i5Var, l5 l5Var) {
|
|
this.a = i5Var;
|
|
this.b = l5Var;
|
|
}
|
|
|
|
@Override // java.io.InputStream
|
|
public int read() {
|
|
if (read(this.c) == -1) {
|
|
return -1;
|
|
}
|
|
return this.c[0] & 255;
|
|
}
|
|
|
|
@Override // java.io.InputStream, java.io.Closeable, java.lang.AutoCloseable
|
|
public void close() {
|
|
if (this.e) {
|
|
return;
|
|
}
|
|
this.a.close();
|
|
this.e = true;
|
|
}
|
|
|
|
private void a() {
|
|
if (this.d) {
|
|
return;
|
|
}
|
|
this.a.a(this.b);
|
|
this.d = true;
|
|
}
|
|
|
|
@Override // java.io.InputStream
|
|
public int read(byte[] bArr) {
|
|
return read(bArr, 0, bArr.length);
|
|
}
|
|
|
|
@Override // java.io.InputStream
|
|
public int read(byte[] bArr, int i, int i2) {
|
|
b1.b(!this.e);
|
|
a();
|
|
int a = this.a.a(bArr, i, i2);
|
|
if (a == -1) {
|
|
return -1;
|
|
}
|
|
this.f += a;
|
|
return a;
|
|
}
|
|
}
|