MCPcopy Create free account
hub / github.com/ALEX5402/NewBlackbox / registerNativeMethods

Function registerNativeMethods

Bcore/src/main/cpp/BoxCore.cpp:143–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141};
142
143int registerNativeMethods(JNIEnv *env, const char *className,
144 JNINativeMethod *gMethods, int numMethods) {
145 jclass clazz;
146 clazz = env->FindClass(className);
147 if (clazz == nullptr) {
148 return JNI_FALSE;
149 }
150 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
151 return JNI_FALSE;
152 }
153 return JNI_TRUE;
154}
155
156int registerNatives(JNIEnv *env) {
157 if (!registerNativeMethods(env, VMCORE_CLASS, gMethods,

Callers 1

registerNativesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected