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

类型签名(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.

Type Signature Java Type
Z booleab
B byte
C char
S short
I int
J long
F float
D double
L full-qualified-class full-qualified-class
[type type[]
(arg-types)ret-type method type


For example, the Java method:

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

has the following type signature:

    (ILjava/lang/String;[I)J

posted on 2012-10-11 16:50  Anthony Li  阅读(717)  评论(0)    收藏  举报

博客园博客已停止更新,博客地址:dyinigbleed.com