My JAVA class code snippet. I want to access getReg_chal() method from my C file using JNI:
public byte[] getReg_chal() {
return reg_chal;
}
My C file doing some jni operation:
mid = (*env)->GetMethodID(env, info, "getReg_chal()", "([B)V");
mid = (*env)->GetMethodID(env, info, "getReg_chal()", ***);
I want to know the method descriptor for my byte[]. Writing "({B)V"
gives me method not found error. What would I fill in ***?
Please help me. Thanks in advance.
[B
http://download.oracle.com/javase/6/docs/technotes/guides/jni/spec/types.html#wp9502
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With