A
Alan Cabrera
How can I call a method that returns a byte[] in JNI? How do I access those
bytes?
Regards,
Alan
bytes?
Regards,
Alan
How can I call a method that returns a byte[] in JNI?
How do I access those bytes?
Gordon Beaton said:How can I call a method that returns a byte[] in JNI?
jbyteArray arr = (*env)->CallObjectMethod(env, obj, mid, arg);
How do I access those bytes?
SetByteArrayRegion(), GetByteArrayRegion(), etc.
/gordon
However, I'm getting an EXCEPTION_ACCESS_VIOLATION when I call
jobject tmp = env->CallObjectMethod(iaObj,
env->GetMethodID(env->FindClass("java/net/InetAddress"), "getAddress",
"()[B"));
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.