【学习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

转载于:https://www.cnblogs.com/dyingbleed/archive/2012/10/11/2720180.html

猜你喜欢

转载自blog.csdn.net/weixin_33755847/article/details/93301823