我尝试编写方法,例如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);
如何从参数将 uint_8 数组写入 jbyteArray?