Example #1
0
        } // GetIntArrayFromPtr(pointer, nLength)

        /// <summary>
        /// Get int array from ptr
        /// </summary>
        internal static int[] GetIntArrayFromPtrLA(IntPtr pointer, int nLength)
        {
            int[] oResult = new int[nLength];
            Marshal.Copy(pointer, oResult, 0, nLength);
            LA.FreeVector(pointer);
            return(oResult);
        } // GetIntArrayFromPtr(pointer, nLength)
Example #2
0
        } // GetStringFromPtr(pointer, nLength)

        /// <summary>
        /// Get string from ptr
        /// </summary>
        internal static string GetStringFromPtrLA(IntPtr pointer, int nLength)
        {
            string sResult = Marshal.PtrToStringAnsi(pointer, nLength);

            LA.FreeVector(pointer);
            return(sResult);
        } // GetStringFromPtrLA(pointer, nLength)
Example #3
0
        } // GetDoubleArrayFromPtr(pointer, nLength)

        /// <summary>
        /// Get double array from ptr
        /// </summary>
        internal static double[] GetDoubleArrayFromPtrLA(IntPtr pointer, int nLength)
        {
            double[] oResult = new double[nLength];
            Marshal.Copy(pointer, oResult, 0, nLength);
            LA.FreeVector(pointer);
            return(oResult);
        } // GetDoubleArrayFromPtr(pointer, nLength)