jni_数据类型对应
基础数据类型
java |
jni |
boolean |
jboolean |
byte |
jbyte |
char |
jchar |
short |
jshort |
int |
jint |
long |
jlong |
float |
jfloat |
double |
jdouble |
数据类型签名
Type Signature |
java Type |
Z |
boolean |
B |
byte |
C |
char |
S |
short |
I |
int |
J |
long |
F |
float |
D |
double |
Lfully-qualified-class; |
ully-qualified-class |
[type |
type[] |
(arg-types)ret-type |
method type |
long f (int n, String s, int[] a);
signature: (ILjava/lang/String;[I)J
- 类描述符开头的'L'与结尾的';'必须要有
- 数组描述符,开头的'['必须有.
- 方法描述符规则: "(各参数描述符)返回值描述符",其中参数描述符间没有任何分隔符号
本文标题:jni_数据类型对应
本文链接:https://www.haomeiwen.com/subject/flxkkttx.html
网友评论