[英]C++ references to JNI types such as jobject
I am new to JNI, and I am confused by mixing JNI types such as jobject and the regular C++ references and pointers. 我是JNI的新手,我对JNI类型(例如jobject和常规C ++引用和指针)的混合感到困惑。 For example, I see this in a project I work on: 例如,我在我从事的项目中看到了这一点:
Optimizer(jobject&);
It is constructor that takes a reference to jobject. 是构造函数引用了jobject。 Can you please help me understand what does a reference to a jobject mean, and also what does a pointer to a jobject mean? 能否请您帮我理解对Jobject的引用是什么意思,以及指向Jobject的指针是什么意思?
Thank you 谢谢
对jobject
的引用只是意味着指向jobject
引用的指针已传递给构造函数,而不是实际的jobject
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.