pub fn to_vec<'a>( env: &mut JNIEnv<'a>, arr: &JObjectArray<'_>, ) -> Vec<JObject<'a>>
把java对象数组转换成Vec
env
arr
returns: Vec<JObject, Global>
use jni::objects::JObjectArray; use droid_wrap_utils::{to_vec, vm_attach}; vm_attach!(mut env); unsafe { let arr=JObjectArray::from_raw(0 as _); to_vec(&mut env, &arr); }