I'm looking to create an array of byte arrays in native code. I plan to use NewObjectArray() for the outer array, since Java arrays are objects. What should I specify as the class identifier for a Java byte array?
1 Answer
NewByteArray allocates a jbyteArray (which corresponds to byte[]). Each of the primitive types has its own array handling functions in JNI.
1 Comment
SomethingSomething
This is not what he asked. He needs an array of byte arrays. Not just a single byte array. You should call
NewObjectArray(), telling the array size and the class type - and the question is what class type should be specified for byte[], since the whole array is byte[][]