47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package o;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/* renamed from: o.glo, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15260glo implements Serializable {
|
|
public int a;
|
|
public byte[] b;
|
|
|
|
public C15260glo(int i) {
|
|
C15264gls.e(i, "Buffer capacity");
|
|
this.b = new byte[i];
|
|
}
|
|
|
|
private void b(int i) {
|
|
byte[] bArr = new byte[Math.max(this.b.length << 1, i)];
|
|
System.arraycopy(this.b, 0, bArr, 0, this.a);
|
|
this.b = bArr;
|
|
}
|
|
|
|
public final void c(byte[] bArr, int i, int i2) {
|
|
int i3;
|
|
if (bArr == null) {
|
|
return;
|
|
}
|
|
if (i < 0 || i > bArr.length || i2 < 0 || (i3 = i + i2) < 0 || i3 > bArr.length) {
|
|
StringBuilder sb = new StringBuilder("off: ");
|
|
sb.append(i);
|
|
sb.append(" len: ");
|
|
sb.append(i2);
|
|
sb.append(" b.length: ");
|
|
sb.append(bArr.length);
|
|
throw new IndexOutOfBoundsException(sb.toString());
|
|
}
|
|
if (i2 == 0) {
|
|
return;
|
|
}
|
|
int i4 = this.a + i2;
|
|
if (i4 > this.b.length) {
|
|
b(i4);
|
|
}
|
|
System.arraycopy(bArr, i, this.b, this.a, i2);
|
|
this.a = i4;
|
|
}
|
|
}
|