63 lines
1.4 KiB
Java
63 lines
1.4 KiB
Java
package c.i.a.c.a2.j0;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import java.util.Arrays;
|
|
/* compiled from: NalUnitTargetBuffer */
|
|
public final class w {
|
|
public final int a;
|
|
public boolean b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public boolean f744c;
|
|
public byte[] d;
|
|
public int e;
|
|
|
|
public w(int i, int i2) {
|
|
this.a = i;
|
|
byte[] bArr = new byte[(i2 + 3)];
|
|
this.d = bArr;
|
|
bArr[2] = 1;
|
|
}
|
|
|
|
public void a(byte[] bArr, int i, int i2) {
|
|
if (this.b) {
|
|
int i3 = i2 - i;
|
|
byte[] bArr2 = this.d;
|
|
int length = bArr2.length;
|
|
int i4 = this.e;
|
|
if (length < i4 + i3) {
|
|
this.d = Arrays.copyOf(bArr2, (i4 + i3) * 2);
|
|
}
|
|
System.arraycopy(bArr, i, this.d, this.e, i3);
|
|
this.e += i3;
|
|
}
|
|
}
|
|
|
|
public boolean b(int i) {
|
|
if (!this.b) {
|
|
return false;
|
|
}
|
|
this.e -= i;
|
|
this.b = false;
|
|
this.f744c = true;
|
|
return true;
|
|
}
|
|
|
|
public void c() {
|
|
this.b = false;
|
|
this.f744c = false;
|
|
}
|
|
|
|
public void d(int i) {
|
|
boolean z2 = true;
|
|
AnimatableValueParser.D(!this.b);
|
|
if (i != this.a) {
|
|
z2 = false;
|
|
}
|
|
this.b = z2;
|
|
if (z2) {
|
|
this.e = 3;
|
|
this.f744c = false;
|
|
}
|
|
}
|
|
}
|