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?
NewByteArray allocates a jbyteArray (which corresponds to byte[]). Each of the primitive types has its own array handling functions in JNI.
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