Information Security/Android
Java VM Type Signature(JNI Type Signature)
hackcatml
2021. 10. 20. 00:53
반응형
Type Signature | Java Type |
Z | boolean |
B | byte |
C | char |
S | short |
I | int |
J | long |
F | float |
D | double |
L fully-qualified-class ; | fully-qualified-class |
[ type | type[] |
( arg-types ) ret-type | method type |
Ex)
터미널에서 "javap -s java.lang.String" 명령어 입력하면 메서드의 JNI 타입 Signature 예시를 볼 수 있습니다.
static int indexOf(byte[], byte, int, java.lang.String, int);
==> ([BBILjava/lang/String;I)I
public java.lang.CharSequence subSequence(int, int);
==> (II)Ljava/lang/CharSequence;
public java.lang.String[] split(java.lang.String, int);
==> (Ljava/lang/String;I)[Ljava/lang/String;
public static java.lang.String valueOf(java.lang.Object);
==> (Ljava/lang/Object;)Ljava/lang/String;
※ 출처
https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/types.html
반응형