+ def get_native_arr_ptr_call(self, ty_info):
+ if ty_info.subty is not None and ty_info.subty.c_ty.endswith("Array"):
+ return None
+ return ("(*env)->GetPrimitiveArrayCritical(env, ", ", NULL)")
+ def get_native_arr_entry_call(self, ty_info, arr_name, idxc, entry_access):
+ if ty_info.subty is None or not ty_info.subty.c_ty.endswith("Array"):
+ return None
+ return "(*env)->SetObjectArrayElement(env, " + arr_name + ", " + idxc + ", " + entry_access + ")"