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.

Share:
12,339

Related videos on Youtube

Kyborg2011
Author by

Kyborg2011

Programmer on Android, web-programmer

Updated on June 01, 2022

Comments

  • Kyborg2011
    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
    Kyborg2011 about 13 years
    Is there a function to copy the contrary PART of jbyte to jbyteArray?
  • user207421
    user207421 about 13 years
    @Kyborg2011: yes, Set<PrimitiveType>ArrayRegion(). It's the next API in the JNI specification after Get<PrimitiveType>ArrayRegion().
  • cnvzmxcvmcx
    cnvzmxcvmcx almost 9 years