71 lines
1.7 KiB
Java
71 lines
1.7 KiB
Java
package j7;
|
|
|
|
import d6.r0;
|
|
import d8.l;
|
|
import d8.o;
|
|
import f8.p0;
|
|
import java.util.Arrays;
|
|
/* compiled from: DataChunk.java */
|
|
/* loaded from: classes4.dex */
|
|
public abstract class k extends e {
|
|
|
|
/* renamed from: j reason: collision with root package name */
|
|
private byte[] f15316j;
|
|
|
|
/* renamed from: k reason: collision with root package name */
|
|
private volatile boolean f15317k;
|
|
|
|
public k(l lVar, o oVar, int i10, r0 r0Var, int i11, Object obj, byte[] bArr) {
|
|
super(lVar, oVar, i10, r0Var, i11, obj, -9223372036854775807L, -9223372036854775807L);
|
|
k kVar;
|
|
byte[] bArr2;
|
|
if (bArr == null) {
|
|
bArr2 = p0.f11356f;
|
|
kVar = this;
|
|
} else {
|
|
kVar = this;
|
|
bArr2 = bArr;
|
|
}
|
|
kVar.f15316j = bArr2;
|
|
}
|
|
|
|
private void h(int i10) {
|
|
byte[] bArr = this.f15316j;
|
|
if (bArr.length < i10 + 16384) {
|
|
this.f15316j = Arrays.copyOf(bArr, bArr.length + 16384);
|
|
}
|
|
}
|
|
|
|
@Override // d8.c0.e
|
|
public final void b() {
|
|
this.f15317k = true;
|
|
}
|
|
|
|
protected abstract void f(byte[] bArr, int i10);
|
|
|
|
public byte[] g() {
|
|
return this.f15316j;
|
|
}
|
|
|
|
@Override // d8.c0.e
|
|
public final void load() {
|
|
try {
|
|
this.f15285i.b(this.f15278b);
|
|
int i10 = 0;
|
|
int i11 = 0;
|
|
while (i10 != -1 && !this.f15317k) {
|
|
h(i11);
|
|
i10 = this.f15285i.c(this.f15316j, i11, 16384);
|
|
if (i10 != -1) {
|
|
i11 += i10;
|
|
}
|
|
}
|
|
if (!this.f15317k) {
|
|
f(this.f15316j, i11);
|
|
}
|
|
} finally {
|
|
p0.n(this.f15285i);
|
|
}
|
|
}
|
|
}
|