I tryed to writer method like InputStream:read(byte[] buffer,int offset,int length):
/*
* Class: com_readium_ResourceStream
* Method: readNative
* Signature: ([BII)I
*/
JNIEXPORT jint JNICALL Java_com_readium_ResourceStream_readNative
(JNIEnv *, jobject, jbyteArray, jint, jint);
How can I write uint_8 array to jbyteArray from params?