I have an array of unsigned integers in C and a java array of longs. I want to copy the contents of the unsigned integers to the java array. So far, the only function that I’ve found to do this is SetLongArrayRegion(), but this takes an entire buffer array. Is there a function to set only the individual elements of the java array?
Share
There is also a function for the primitive ‘long’ type to set individual elements in JNI. So I believe what you want to have is something like this
if the long array in java is called
longArrayand the java class is saved in a JNI jclass variablejavaClass.