58 lines
1.9 KiB
Java
58 lines
1.9 KiB
Java
package com.google.android.gms.internal.vision;
|
|
|
|
import com.google.common.base.Ascii;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzix {
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static boolean zzd(byte b) {
|
|
return b >= 0;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static boolean zze(byte b) {
|
|
return b < -32;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static boolean zzf(byte b) {
|
|
return b < -16;
|
|
}
|
|
|
|
private static boolean zzg(byte b) {
|
|
return b > -65;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static void zza(byte b, char[] cArr, int i) {
|
|
cArr[i] = (char) b;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static void zza(byte b, byte b2, char[] cArr, int i) throws zzgf {
|
|
if (b < -62 || zzg(b2)) {
|
|
throw zzgf.zzfp();
|
|
}
|
|
cArr[i] = (char) (((b & Ascii.US) << 6) | (b2 & 63));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static void zza(byte b, byte b2, byte b3, char[] cArr, int i) throws zzgf {
|
|
if (zzg(b2) || ((b == -32 && b2 < -96) || ((b == -19 && b2 >= -96) || zzg(b3)))) {
|
|
throw zzgf.zzfp();
|
|
}
|
|
cArr[i] = (char) (((b & 15) << 12) | ((b2 & 63) << 6) | (b3 & 63));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static void zza(byte b, byte b2, byte b3, byte b4, char[] cArr, int i) throws zzgf {
|
|
if (zzg(b2) || (((b << 28) + (b2 + ISO7816.INS_MANAGE_CHANNEL)) >> 30) != 0 || zzg(b3) || zzg(b4)) {
|
|
throw zzgf.zzfp();
|
|
}
|
|
int i2 = ((b & 7) << 18) | ((b2 & 63) << 12) | ((b3 & 63) << 6) | (b4 & 63);
|
|
cArr[i] = (char) ((i2 >>> 10) + 55232);
|
|
cArr[i + 1] = (char) ((i2 & 1023) + 56320);
|
|
}
|
|
}
|