51 lines
1.5 KiB
Java
51 lines
1.5 KiB
Java
package o;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class Zyy {
|
|
private final List<uTj> a;
|
|
private final Ayo c;
|
|
|
|
public Zyy(Ayo ayo) {
|
|
this.c = ayo;
|
|
ArrayList arrayList = new ArrayList();
|
|
this.a = arrayList;
|
|
arrayList.add(new uTj(ayo, new int[]{1}));
|
|
}
|
|
|
|
private uTj a(int i) {
|
|
if (i >= this.a.size()) {
|
|
List<uTj> list = this.a;
|
|
uTj utj = list.get(list.size() - 1);
|
|
for (int size = this.a.size(); size <= i; size++) {
|
|
Ayo ayo = this.c;
|
|
utj = utj.c(new uTj(ayo, new int[]{1, ayo.f[(size - 1) + ayo.h]}));
|
|
this.a.add(utj);
|
|
}
|
|
}
|
|
return this.a.get(i);
|
|
}
|
|
|
|
public final void a(int[] iArr, int i) {
|
|
if (i == 0) {
|
|
throw new IllegalArgumentException("No error correction bytes");
|
|
}
|
|
int length = iArr.length - i;
|
|
if (length <= 0) {
|
|
throw new IllegalArgumentException("No data bytes provided");
|
|
}
|
|
uTj a = a(i);
|
|
int[] iArr2 = new int[length];
|
|
System.arraycopy(iArr, 0, iArr2, 0, length);
|
|
uTj utj = new uTj(this.c, iArr2).e(i, 1).d(a)[1];
|
|
int[] iArr3 = (int[]) uTj.e(new Object[]{utj}, -1108299668, 1108299668, System.identityHashCode(utj));
|
|
int length2 = i - iArr3.length;
|
|
for (int i2 = 0; i2 < length2; i2++) {
|
|
iArr[length + i2] = 0;
|
|
}
|
|
System.arraycopy(iArr3, 0, iArr, length + length2, iArr3.length);
|
|
}
|
|
}
|