简体   繁体   English

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

[英]What is the jsize type in Java Native Interface?

jsize is used to get the array length as show below. jsize用于获取数组长度,如下所示。

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

What is jsize type in JNI. JNI 中的jsize类型是什么。 How it different from jint它与jint有何不同

According to the documentation , jsize is a synonym for jint .根据文档jsizejint的同义词。

typedef jint jsize;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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