Java JNI: How to create an array of byte arrays in native code?

I am looking to create an array of byte arrays in native code. I plan to use NewObjectArray () for an external array, since Java arrays are objects. What should I specify as a class identifier for a Java byte array?

+3
source share
1 answer

NewByteArray allocates jbyteArray (which corresponds to byte []). Each of the primitive types has its own array processing functions in JNI.

+2
source

Source: https://habr.com/ru/post/1765157/


All Articles