Java Native Interface 中的 jsize 类型是什么?

What is the jsize type in Java Native Interface?

jsize用于获取数组长度,如下所示。

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

JNI 中的 jsize 类型是什么。它与 jint

有何不同

根据 documentationjsizejint 的同义词。

typedef jint jsize;