register
context(autofreeScope: AutofreeScope)
inline fun JNINativeMethodRegistry.register(name: CValuesRef<ByteVar>, signature: CValuesRef<ByteVar>, functionPointer: JRef<CFunction<*>>)(source)
inline fun JNINativeMethodRegistry.register(name: CValuesRef<ByteVar>, signature: CValuesRef<ByteVar>, functionPointer: JRef<CFunction<*>>)(source)
Register new JniNativeMethod with specified name, signature and functionPointer.
Name and signature must be in the null-terminated modified UTF-8. Use String.modifiedUtf8 to get it, or if you are sure that your string doesn't have illegal characters you may use optimized String.utf8.
context(autofreeScope: AutofreeScope)
inline fun JNINativeMethodRegistry.register(name: String, signature: String, functionPointer: JRef<CFunction<*>>)(source)
inline fun JNINativeMethodRegistry.register(name: String, signature: String, functionPointer: JRef<CFunction<*>>)(source)
Alias for JNINativeMethodRegistry.register which accepts name and signature as Kotlin Strings.