摘要: 转载于 https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html 1. 使用jstring JNI中类型是jstring,要正确使用需要转换为native的char* jstring转换为char* 通 阅读全文
posted @ 2021-03-27 23:14 make_wheels 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1. JNI基础 ​ 为了承接上层java并且转换到下层c++,java 定义了一套对应类型 基本类型 JNI类型 java类型 jint int jbyte byte jshort jlong jfloat float jdouble double jchar char jboolean bool 阅读全文
posted @ 2021-03-27 18:31 make_wheels 阅读(112) 评论(0) 推荐(0) 编辑
摘要: JNI的静态注册和动态注册: 前提 ​ JNI是java的东西,Android只是使用优化!! 参考感谢 ​ https://blog.csdn.net/afei__/article/details/81031965 ​ https://blog.csdn.net/u013365635/articl 阅读全文
posted @ 2021-03-27 14:47 make_wheels 阅读(624) 评论(0) 推荐(0) 编辑