java - What does the difference of the JNI method CallObjectMethod,CallObjectMethodV and CallObjectMethodA? -
there 3 kinds of methods in jni callobjectmethod callobjectmethodv callobjectmethoda difference of methods?
jobject (*callobjectmethod)(jnienv*, jobject, jmethodid, ...); jobject (*callobjectmethodv)(jnienv*, jobject, jmethodid, va_list); jobject (*callobjectmethoda)(jnienv*, jobject, jmethodid, jvalue*);
the difference way how java arguments passed. docs explain well:
call<type>method routines
programmers place arguments passed method following methodid argument. callmethod routine accepts these arguments , passes them java method programmer wishes invoke.
call<type>methoda routines
programmers place arguments method in args array of jvalues follows methodid argument. callmethoda routine accepts arguments in array, and, in turn, passes them java method programmer wishes invoke.
call<type>methodv routines
programmers place arguments method in args argument of type va_list follows methodid argument. callmethodv routine accepts arguments, and, in turn, passes them java method programmer wishes invoke.
Comments
Post a Comment