- 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
96 lines
2.0 KiB
Java
96 lines
2.0 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.net.Uri;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class ta implements i5 {
|
|
private final i5 a;
|
|
private final int b;
|
|
private final a c;
|
|
private final byte[] d;
|
|
private int e;
|
|
|
|
public interface a {
|
|
void a(bh bhVar);
|
|
}
|
|
|
|
@Override // com.applovin.impl.i5
|
|
public void close() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public ta(i5 i5Var, int i, a aVar) {
|
|
b1.a(i > 0);
|
|
this.a = i5Var;
|
|
this.b = i;
|
|
this.c = aVar;
|
|
this.d = new byte[1];
|
|
this.e = i;
|
|
}
|
|
|
|
@Override // com.applovin.impl.i5
|
|
public void a(xo xoVar) {
|
|
b1.a(xoVar);
|
|
this.a.a(xoVar);
|
|
}
|
|
|
|
@Override // com.applovin.impl.i5
|
|
public Uri c() {
|
|
return this.a.c();
|
|
}
|
|
|
|
@Override // com.applovin.impl.i5
|
|
public Map e() {
|
|
return this.a.e();
|
|
}
|
|
|
|
private boolean g() {
|
|
if (this.a.a(this.d, 0, 1) == -1) {
|
|
return false;
|
|
}
|
|
int i = (this.d[0] & 255) << 4;
|
|
if (i == 0) {
|
|
return true;
|
|
}
|
|
byte[] bArr = new byte[i];
|
|
int i2 = i;
|
|
int i3 = 0;
|
|
while (i2 > 0) {
|
|
int a2 = this.a.a(bArr, i3, i2);
|
|
if (a2 == -1) {
|
|
return false;
|
|
}
|
|
i3 += a2;
|
|
i2 -= a2;
|
|
}
|
|
while (i > 0 && bArr[i - 1] == 0) {
|
|
i--;
|
|
}
|
|
if (i > 0) {
|
|
this.c.a(new bh(bArr, i));
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // com.applovin.impl.g5
|
|
public int a(byte[] bArr, int i, int i2) {
|
|
if (this.e == 0) {
|
|
if (!g()) {
|
|
return -1;
|
|
}
|
|
this.e = this.b;
|
|
}
|
|
int a2 = this.a.a(bArr, i, Math.min(this.e, i2));
|
|
if (a2 != -1) {
|
|
this.e -= a2;
|
|
}
|
|
return a2;
|
|
}
|
|
|
|
@Override // com.applovin.impl.i5
|
|
public long a(l5 l5Var) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|