什么是使用JNI的byte[]字节数组的方法描述符/签名



我的JAVA类代码片段。我想访问getReg_chal()方法从我的C文件使用JNI:

public byte[] getReg_chal() {
    return reg_chal;
}

我的C文件正在做一些jni操作:

mid = (*env)->GetMethodID(env, info, "getReg_chal()", "([B)V");
mid = (*env)->GetMethodID(env, info, "getReg_chal()", ***);

我想知道我的byte[]的方法描述符。写"({B)V"给我的方法没有发现错误。***我该怎么填?请帮帮我。

[B

]

http://download.oracle.com/javase/6/docs/technotes/guides/jni/spec/types.html wp9502

最新更新