GetByteArrayRegion in JNI
12,339
`Get < PrimitiveTypeArray>ArrayRegion' is a family of functions that copies a region of a primitive array into a buffer. That's what the documentation says. It seems clear to me.
Related videos on Youtube
![Kyborg2011](https://i.stack.imgur.com/orBJO.jpg?s=256&g=1)
Comments
-
Kyborg2011 about 2 years
The question is: Suppose I use the function: (* env) -> GetByteArrayRegion (env, array, 0, len, (jbyte *)buf); In this case, a certain number of bytes written from the array to the buf or vice versa? Maybe a simple question, but I'm confused. Help, please:. In the documentation is not found.
-
Kyborg2011 about 13 yearsIs there a function to copy the contrary PART of jbyte to jbyteArray?
-
user207421 about 13 years@Kyborg2011: yes, Set<PrimitiveType>ArrayRegion(). It's the next API in the JNI specification after Get<PrimitiveType>ArrayRegion().
-
cnvzmxcvmcx almost 9 yearsAdding link to documentation: docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/…