I have the following JNI method,
JNIEXPORT jobject JNICALL Java_projlib_DeserializeBuffer
(JNIEnv *env, jobject obj, jbyteArray inBufferData)
I have created a list of unsigned char* and filling it using some data extracted from the inBufferData in my C++ code
list<unsigned char*> returnBuffer
I want to return the returnBuffer to my Java code, where it will be a List of byte array, List<byte[]>.
Please tell me how to pass the list of unsigned char* via a jobject through JNI and then get it in Java for further processing.