📜  jstring 到 char* - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:46.103000             🧑  作者: Mango

代码示例1
JNIEXPORT void JNICALL Java_ClassName_MethodName(JNIEnv *env, jobject obj, jstring javaString)   
{
   const char *nativeString = env->GetStringUTFChars(javaString, 0);

   // use your string

   env->ReleaseStringUTFChars(javaString, nativeString);
}