what-the-bank/sources/org/bouncycastle/util/test/NumberParsing.java

16 lines
524 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.util.test;
/* loaded from: classes6.dex */
public final class NumberParsing {
public static long decodeLongFromHex(String str) {
return (str.charAt(1) == 'x' || str.charAt(1) == 'X') ? Long.parseLong(str.substring(2), 16) : Long.parseLong(str, 16);
}
public static int decodeIntFromHex(String str) {
return (str.charAt(1) == 'x' || str.charAt(1) == 'X') ? Integer.parseInt(str.substring(2), 16) : Integer.parseInt(str, 16);
}
private NumberParsing() {
}
}