简体   繁体   中英

What is the jsize type in Java Native Interface?

jsize is used to get the array length as show below.

// Here buf is a jArray type
jsize length = (*env)->GetArrayLength(env, buf);

What is jsize type in JNI. How it different from jint

According to the documentation , jsize is a synonym for jint .

typedef jint jsize;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM