108 lines
3.4 KiB
Java
108 lines
3.4 KiB
Java
package o;
|
|
|
|
import com.google.common.primitives.UnsignedBytes;
|
|
import java.io.IOException;
|
|
import java.math.BigInteger;
|
|
|
|
/* renamed from: o.gnz, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C15350gnz extends AbstractC15315gnE {
|
|
private static C15350gnz[] b = new C15350gnz[12];
|
|
public final byte[] a;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.AbstractC15315gnE
|
|
public final boolean d() {
|
|
return false;
|
|
}
|
|
|
|
public static C15350gnz a(Object obj) {
|
|
if (obj == null || (obj instanceof C15350gnz)) {
|
|
return (C15350gnz) obj;
|
|
}
|
|
if (obj instanceof byte[]) {
|
|
try {
|
|
return (C15350gnz) b((byte[]) obj);
|
|
} catch (Exception e) {
|
|
StringBuilder sb = new StringBuilder("encoding error in getInstance: ");
|
|
sb.append(e.toString());
|
|
throw new IllegalArgumentException(sb.toString());
|
|
}
|
|
}
|
|
StringBuilder sb2 = new StringBuilder("illegal object in getInstance: ");
|
|
sb2.append(obj.getClass().getName());
|
|
throw new IllegalArgumentException(sb2.toString());
|
|
}
|
|
|
|
public C15350gnz(int i) {
|
|
this.a = BigInteger.valueOf(i).toByteArray();
|
|
}
|
|
|
|
private C15350gnz(byte[] bArr) {
|
|
this.a = bArr;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.AbstractC15315gnE
|
|
public final int c() {
|
|
return goV.d(this.a.length) + 1 + this.a.length;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.AbstractC15315gnE
|
|
protected final boolean e(AbstractC15315gnE abstractC15315gnE) {
|
|
if (abstractC15315gnE instanceof C15350gnz) {
|
|
return grK.b(this.a, ((C15350gnz) abstractC15315gnE).a);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // o.AbstractC15346gnv
|
|
public final int hashCode() {
|
|
return grK.c(this.a);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static C15350gnz d(byte[] bArr) {
|
|
byte[] bArr2 = null;
|
|
if (bArr.length > 1) {
|
|
if (bArr != null) {
|
|
bArr2 = new byte[bArr.length];
|
|
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
|
|
}
|
|
return new C15350gnz(bArr2);
|
|
}
|
|
if (bArr.length == 0) {
|
|
throw new IllegalArgumentException("ENUMERATED has zero length");
|
|
}
|
|
int i = bArr[0] & UnsignedBytes.MAX_VALUE;
|
|
C15350gnz[] c15350gnzArr = b;
|
|
if (i >= c15350gnzArr.length) {
|
|
if (bArr != null) {
|
|
bArr2 = new byte[bArr.length];
|
|
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
|
|
}
|
|
return new C15350gnz(bArr2);
|
|
}
|
|
C15350gnz c15350gnz = c15350gnzArr[i];
|
|
if (c15350gnz == null) {
|
|
if (bArr != null) {
|
|
bArr2 = new byte[bArr.length];
|
|
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
|
|
}
|
|
c15350gnz = new C15350gnz(bArr2);
|
|
c15350gnzArr[i] = c15350gnz;
|
|
}
|
|
return c15350gnz;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
@Override // o.AbstractC15315gnE
|
|
public final void c(gnG gng) throws IOException {
|
|
byte[] bArr = this.a;
|
|
gng.a(10);
|
|
gng.d(bArr.length);
|
|
gng.a.write(bArr);
|
|
}
|
|
}
|