70 lines
1.8 KiB
Java
70 lines
1.8 KiB
Java
package o;
|
|
|
|
/* renamed from: o.gjg, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
final class C15186gjg {
|
|
final byte[] a;
|
|
C15186gjg b;
|
|
int c;
|
|
boolean d;
|
|
C15186gjg e;
|
|
int g;
|
|
boolean h;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public C15186gjg() {
|
|
this.a = new byte[2048];
|
|
this.d = true;
|
|
this.h = false;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public C15186gjg(C15186gjg c15186gjg) {
|
|
this(c15186gjg.a, c15186gjg.g, c15186gjg.c);
|
|
c15186gjg.h = true;
|
|
}
|
|
|
|
private C15186gjg(byte[] bArr, int i, int i2) {
|
|
this.a = bArr;
|
|
this.g = i;
|
|
this.c = i2;
|
|
this.d = false;
|
|
this.h = true;
|
|
}
|
|
|
|
public final C15186gjg b() {
|
|
C15186gjg c15186gjg = this.b;
|
|
C15186gjg c15186gjg2 = c15186gjg != this ? c15186gjg : null;
|
|
C15186gjg c15186gjg3 = this.e;
|
|
c15186gjg3.b = c15186gjg;
|
|
this.b.e = c15186gjg3;
|
|
this.b = null;
|
|
this.e = null;
|
|
return c15186gjg2;
|
|
}
|
|
|
|
public final void a(C15186gjg c15186gjg, int i) {
|
|
if (!c15186gjg.d) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
int i2 = c15186gjg.c;
|
|
int i3 = i2 + i;
|
|
if (i3 > 2048) {
|
|
if (c15186gjg.h) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
int i4 = c15186gjg.g;
|
|
if (i3 - i4 > 2048) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
byte[] bArr = c15186gjg.a;
|
|
System.arraycopy(bArr, i4, bArr, 0, i2 - i4);
|
|
c15186gjg.c -= c15186gjg.g;
|
|
c15186gjg.g = 0;
|
|
}
|
|
System.arraycopy(this.a, this.g, c15186gjg.a, c15186gjg.c, i);
|
|
c15186gjg.c += i;
|
|
this.g += i;
|
|
}
|
|
}
|