您的位置:首页 > 移动开发 > Android开发

【学习Android NDK开发】Type Signatures(类型签名)

2012-10-11 16:50 417 查看
类型签名(Type Signatures)

(<Parameter 1 Type Code>[<Parameter 1 Class>];...)<Return Type Code>

The JNI uses the Java VM’s representation of type signatures. Following Table shows these type signatures.

[b]Type Signature[/b][b]Java Type[/b]
Zbooleab
Bbyte
Cchar
Sshort
Iint
Jlong
Ffloat
Ddouble
L full-qualified-classfull-qualified-class
[typetype[]
(arg-types)ret-typemethod type
For example, the Java method:

long f (int n, String s, int[] arr);

has the following type signature:

(ILjava/lang/String;[I)J
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: