Kyborg2011
Kyborg2011

Reputation: 606

GetByteArrayRegion in JNI

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.

Upvotes: 1

Views: 14189

Answers (1)

user207421
user207421

Reputation: 310985

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.

Upvotes: 0

Related Questions