what-the-bank/sources/o/MTP.java

104 lines
2.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.List;
import java.util.RandomAccess;
import org.bouncycastle.i18n.LocalizedMessage;
/* loaded from: classes2.dex */
public final class MTP {
static final Charset a = Charset.forName("US-ASCII");
public static final Charset b = Charset.forName("UTF-8");
public static final ByteBuffer d;
public static final byte[] e;
/* loaded from: classes2.dex */
public interface HBt<T extends IeS> {
}
/* loaded from: classes2.dex */
public interface IeS {
int d();
}
/* loaded from: classes2.dex */
public interface LWm {
boolean b();
}
/* loaded from: classes2.dex */
public interface RVV<E> extends List<E>, RandomAccess {
void a();
RVV<E> b(int i);
boolean e();
}
/* loaded from: classes2.dex */
public interface Sts extends RVV<Integer> {
}
public static int b(long j) {
return (int) (j ^ (j >>> 32));
}
public static int c(boolean z) {
return z ? 1231 : 1237;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static <T> T d(T t) {
return t;
}
static {
Charset.forName(LocalizedMessage.DEFAULT_ENCODING);
byte[] bArr = new byte[0];
e = bArr;
d = ByteBuffer.wrap(bArr);
cKE.a(bArr);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static <T> T c(T t, String str) {
if (t != null) {
return t;
}
throw new NullPointerException(str);
}
public static boolean c(byte[] bArr) {
return C16752qto.d(bArr);
}
public static String b(byte[] bArr) {
return new String(bArr, b);
}
public static int d(byte[] bArr) {
int length = bArr.length;
for (byte b2 : bArr) {
length = (length * 31) + b2;
}
if (length == 0) {
return 1;
}
return length;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int c(int i, byte[] bArr, int i2, int i3) {
for (int i4 = i2; i4 < i2 + i3; i4++) {
i = (i * 31) + bArr[i4];
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Object a(Object obj, Object obj2) {
return ((InterfaceC16581pUl) obj).toBuilder().mergeFrom((InterfaceC16581pUl) obj2).buildPartial();
}
}