Files
rr3-apk/decompiled-community/sources/okio/Util.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

40 lines
1.2 KiB
Java

package okio;
import java.nio.charset.Charset;
/* loaded from: classes5.dex */
public abstract class Util {
public static final Charset UTF_8 = Charset.forName("UTF-8");
public static int reverseBytesInt(int i) {
return ((i & 255) << 24) | (((-16777216) & i) >>> 24) | ((16711680 & i) >>> 8) | ((65280 & i) << 8);
}
public static short reverseBytesShort(short s) {
return (short) (((s & 255) << 8) | ((65280 & s) >>> 8));
}
public static void checkOffsetAndCount(long j, long j2, long j3) {
if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) {
throw new ArrayIndexOutOfBoundsException(String.format("size=%s offset=%s byteCount=%s", Long.valueOf(j), Long.valueOf(j2), Long.valueOf(j3)));
}
}
public static void sneakyRethrow(Throwable th) {
sneakyThrow2(th);
}
public static void sneakyThrow2(Throwable th) {
throw th;
}
public static boolean arrayRangeEquals(byte[] bArr, int i, byte[] bArr2, int i2, int i3) {
for (int i4 = 0; i4 < i3; i4++) {
if (bArr[i4 + i] != bArr2[i4 + i2]) {
return false;
}
}
return true;
}
}