public static DataManString[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { if (javaUnityApplicasaDataManString == null) { javaUnityApplicasaDataManString = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaDataManString"); } AndroidJavaObject[] bigArray = javaUnityApplicasaDataManString.CallStatic <AndroidJavaObject[]>("ApplicasaDataManStringGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind); DataManString[] dataManStringInner = null; for (int i = 0; i < bigArray.Length; i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject()); DataManString[] dataManStringtemp = new DataManString[InnerArray.Length]; for (int j = 0; j < InnerArray.Length; j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManStringtemp[j] = new DataManString(tempObj.GetRawObject(), tempObj); } if (dataManStringInner == null) { dataManStringInner = dataManStringtemp; } else { DataManString[] firstOne = dataManStringInner; dataManStringInner = new DataManString[firstOne.Length + dataManStringtemp.Length]; firstOne.CopyTo(dataManStringInner, 0); dataManStringtemp.CopyTo(dataManStringInner, firstOne.Length); } } return(dataManStringInner); }
public static IEnumerator GetDataManStringArrayIEnumerator(DataManStringArray dataManStringArray) { yield return(new WaitForSeconds(0.2f)); DataManString[] dataManStringInner = new DataManString[0]; finalDataManString = dataManStringInner; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return(new WaitForSeconds(0.2f)); DataManString[] dataManStringInner = new DataManString[0]; finalDataManString = dataManStringInner; }
public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray) { DataManString[] dataManStrings = new DataManString[dataManStringArray.ArraySize]; for (int i = 0; i < dataManStringArray.ArraySize; i++) { IntPtr newPtr = Marshal.ReadIntPtr(dataManStringArray.Array, i * Marshal.SizeOf(typeof(IntPtr))); dataManStrings[i] = new DataManString(newPtr); } return(dataManStrings); }
public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray) { DataManString[] dataManStringInner = new DataManString[dataManStringArray.ArraySize]; AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(dataManStringArray.Array); int count = 0; for (int i = 0; i < bigArray.Length; i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject()); for (int j = 0; j < InnerArray.Length; j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManStringInner[count] = new DataManString(tempObj.GetRawObject(), tempObj); count++; } } return(dataManStringInner); }
public static IEnumerator GetDataManStringArrayIEnumerator(DataManStringArray dataManStringArray) { DataManString[] dataManStringInner = new DataManString[dataManStringArray.ArraySize]; AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(dataManStringArray.Array); int count = 0; for (int i = 0; i < bigArray.Length; i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(tempJavaObject.GetRawObject()); for (int j = 0; j < InnerArray.Length; j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManStringInner[count] = new DataManString(tempObj.GetRawObject(), tempObj); count++; } yield return(new WaitForSeconds(0.2f)); } finalDataManString = dataManStringInner; }
public static DataManString[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { DataManString[] dataManString = new DataManString[0]; return(dataManString); }
public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray) { DataManString[] dataManStrings = new DataManString[0]; return(dataManStrings); }
public static IEnumerator GetDataManStringArrayIEnumerator(DataManStringArray dataManStringArray) { yield return new WaitForSeconds(0.2f); DataManString[] dataManStringInner = new DataManString[0]; finalDataManString = dataManStringInner; }
public static DataManString[] GetArrayWithQuerySync(Query query, QueryKind queryKind) { DataManString[] dataManString = new DataManString[0]; return dataManString; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { yield return new WaitForSeconds(0.2f); DataManString[] dataManStringInner = new DataManString[0]; finalDataManString = dataManStringInner; }
public static IEnumerator GetDataManStringArrayIEnumerator(DataManStringArray dataManStringArray) { DataManString[] dataManStringInner = new DataManString[dataManStringArray.ArraySize]; AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(dataManStringArray.Array); int count = 0; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManStringInner[count] = new DataManString(tempObj.GetRawObject(),tempObj); count++; } yield return new WaitForSeconds(0.2f); } finalDataManString = dataManStringInner; }
public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind) { if(javaUnityApplicasaDataManString==null) javaUnityApplicasaDataManString = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaDataManString"); AndroidJavaObject[] bigArray = javaUnityApplicasaDataManString.CallStatic<AndroidJavaObject[]>("ApplicasaDataManStringGetArrayWithQuerySync", query.innerQueryJavaObject, (int)queryKind); DataManString[] dataManStringInner= null;; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); DataManString[] dataManStringtemp = new DataManString[InnerArray.Length]; for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManStringtemp[j] = new DataManString(tempObj.GetRawObject(),tempObj); } if (dataManStringInner == null) dataManStringInner = dataManStringtemp; else{ DataManString[] firstOne = dataManStringInner; dataManStringInner = new DataManString[firstOne.Length+dataManStringtemp.Length]; firstOne.CopyTo(dataManStringInner,0); dataManStringtemp.CopyTo(dataManStringInner,firstOne.Length); } yield return new WaitForSeconds(0.2f); } finalDataManString = dataManStringInner; }
public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray) { DataManString[] dataManStrings = new DataManString[0]; return dataManStrings; }
public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray) { DataManString[] dataManStrings = new DataManString[dataManStringArray.ArraySize]; for (int i=0; i < dataManStringArray.ArraySize; i++) { IntPtr newPtr = Marshal.ReadIntPtr (dataManStringArray.Array, i * Marshal.SizeOf(typeof(IntPtr))); dataManStrings[i] = new DataManString(newPtr); } return dataManStrings; }
public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray) { DataManString[] dataManStringInner = new DataManString[dataManStringArray.ArraySize]; AndroidJavaObject[] bigArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(dataManStringArray.Array); int count = 0; for (int i = 0;i < bigArray.Length;i++) { AndroidJavaObject tempJavaObject = bigArray[i]; AndroidJavaObject[] InnerArray = AndroidJNIHelper.ConvertFromJNIArray<AndroidJavaObject[]>(tempJavaObject.GetRawObject()); for (int j = 0;j < InnerArray.Length;j++) { AndroidJavaObject tempObj = InnerArray[j]; dataManStringInner[count] = new DataManString(tempObj.GetRawObject(),tempObj); count++; } } return dataManStringInner; }