- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
package com.applovin.impl;
|
|
|
|
import java.io.EOFException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class n8 {
|
|
public static void a(boolean z, String str) {
|
|
if (!z) {
|
|
throw dh.a(str, null);
|
|
}
|
|
}
|
|
|
|
public static boolean b(l8 l8Var, byte[] bArr, int i, int i2) {
|
|
try {
|
|
l8Var.d(bArr, i, i2);
|
|
return true;
|
|
} catch (EOFException unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public static boolean a(l8 l8Var, byte[] bArr, int i, int i2, boolean z) {
|
|
try {
|
|
return l8Var.b(bArr, i, i2, z);
|
|
} catch (EOFException e) {
|
|
if (z) {
|
|
return false;
|
|
}
|
|
throw e;
|
|
}
|
|
}
|
|
|
|
public static int a(l8 l8Var, byte[] bArr, int i, int i2) {
|
|
int i3 = 0;
|
|
while (i3 < i2) {
|
|
int b = l8Var.b(bArr, i + i3, i2 - i3);
|
|
if (b == -1) {
|
|
break;
|
|
}
|
|
i3 += b;
|
|
}
|
|
return i3;
|
|
}
|
|
|
|
public static boolean a(l8 l8Var, int i) {
|
|
try {
|
|
l8Var.a(i);
|
|
return true;
|
|
} catch (EOFException unused) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|