【学习Android NDK开发】Type Signatures(类型签名)
生活随笔
收集整理的這篇文章主要介紹了
【学习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
總結
以上是生活随笔為你收集整理的【学习Android NDK开发】Type Signatures(类型签名)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Brave Game【博弈】
- 下一篇: 传百度无人车计划分拆,百度回复:不实信息