what-the-bank/sources/com/google/android/libraries/places/internal/zzafh.java

75 lines
2.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import org.bouncycastle.i18n.LocalizedMessage;
/* loaded from: classes2.dex */
public final class zzafh {
static final Charset zza = Charset.forName("US-ASCII");
static final Charset zzb = Charset.forName("UTF-8");
static final Charset zzc = Charset.forName(LocalizedMessage.DEFAULT_ENCODING);
public static final byte[] zzd;
public static final ByteBuffer zze;
public static final zzaeh zzf;
static {
byte[] bArr = new byte[0];
zzd = bArr;
zze = ByteBuffer.wrap(bArr);
zzaef zzaefVar = new zzaef(bArr, 0, 0, false, null);
try {
zzaefVar.zza(0);
zzf = zzaefVar;
} catch (zzafj e) {
throw new IllegalArgumentException(e);
}
}
public static int zza(boolean z) {
return z ? 1231 : 1237;
}
public static int zzb(byte[] bArr) {
int length = bArr.length;
int zzd2 = zzd(length, bArr, 0, length);
if (zzd2 == 0) {
return 1;
}
return zzd2;
}
public static int zzc(long j) {
return (int) (j ^ (j >>> 32));
}
/* JADX INFO: Access modifiers changed from: package-private */
public static int zzd(int i, byte[] bArr, int i2, int i3) {
for (int i4 = 0; i4 < i3; i4++) {
i = (i * 31) + bArr[i4];
}
return i;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Object zze(Object obj) {
return obj;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Object zzf(Object obj, String str) {
if (obj != null) {
return obj;
}
throw new NullPointerException(str);
}
public static boolean zzh(byte[] bArr) {
return zzahw.zzd(bArr);
}
public static String zzg(byte[] bArr) {
return new String(bArr, zzb);
}
}