コード例 #1
0
        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);
        }
コード例 #2
0
        public static IEnumerator GetDataManStringArrayIEnumerator(DataManStringArray dataManStringArray)
        {
            yield return(new WaitForSeconds(0.2f));

            DataManString[] dataManStringInner = new DataManString[0];
            finalDataManString = dataManStringInner;
        }
コード例 #3
0
        public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
        {
            yield return(new WaitForSeconds(0.2f));

            DataManString[] dataManStringInner = new DataManString[0];
            finalDataManString = dataManStringInner;
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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;
        }
コード例 #7
0
        public static DataManString[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            DataManString[] dataManString = new DataManString[0];

            return(dataManString);
        }
コード例 #8
0
 public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray)
 {
     DataManString[] dataManStrings = new DataManString[0];
     return(dataManStrings);
 }
コード例 #9
0
 public static IEnumerator GetDataManStringArrayIEnumerator(DataManStringArray dataManStringArray)
 {
     yield return new WaitForSeconds(0.2f);
     DataManString[]  dataManStringInner = new DataManString[0];
     finalDataManString = dataManStringInner;
 }
コード例 #10
0
        public static DataManString[] GetArrayWithQuerySync(Query query, QueryKind queryKind)
        {
            DataManString[] dataManString = new DataManString[0];

            return dataManString;
        }
コード例 #11
0
 public static IEnumerator GetArrayWithQuerySyncIEnumerator(Query query, QueryKind queryKind)
 {
     yield return new WaitForSeconds(0.2f);
         DataManString[]  dataManStringInner = new DataManString[0];
         finalDataManString = dataManStringInner;
 }
コード例 #12
0
        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;
        }
コード例 #13
0
        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;
        }
コード例 #14
0
 public static DataManString[] GetDataManStringArray(DataManStringArray dataManStringArray)
 {
     DataManString[] dataManStrings = new DataManString[0];
     return dataManStrings;
 }
コード例 #15
0
        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;
        }
コード例 #16
0
        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;
        }