discord-jadx/app/src/main/java/org/webrtc/JniHelper.java

30 lines
713 B
Java

package org.webrtc;
import java.io.UnsupportedEncodingException;
import java.util.Map;
public class JniHelper {
@CalledByNative
public static Object getKey(Map.Entry entry) {
return entry.getKey();
}
@CalledByNative
public static byte[] getStringBytes(String str) {
try {
return str.getBytes("ISO-8859-1");
} catch (UnsupportedEncodingException unused) {
throw new RuntimeException("ISO-8859-1 is unsupported");
}
}
@CalledByNative
public static Object getStringClass() {
return String.class;
}
@CalledByNative
public static Object getValue(Map.Entry entry) {
return entry.getValue();
}
}