Esempio n. 1
0
        public static int l_dnaaGetValue(this L_Dnaa daa, int i, int j, out double pval)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaGetValue((HandleRef)daa, i, j, out pval));
        }
Esempio n. 2
0
        public static int l_dnaaAddNumber(this L_Dnaa daa, int index, double val)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaAddNumber((HandleRef)daa, index, val));
        }
Esempio n. 3
0
        public static int l_dnaaGetNumberCount(this L_Dnaa daa)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaGetNumberCount((HandleRef)daa));
        }
Esempio n. 4
0
        public static int l_dnaaWriteStream(IntPtr fp, L_Dnaa daa)
        {
            if (IntPtr.Zero == fp ||
                null == daa)
            {
                throw new ArgumentNullException("fp, daa cannot be null");
            }

            return(Native.DllImports.l_dnaaWriteStream(fp, (HandleRef)daa));
        }
Esempio n. 5
0
        public static int l_dnaaReplaceDna(this L_Dnaa daa, int index, L_Dna da)
        {
            if (null == daa ||
                null == da)
            {
                throw new ArgumentNullException("daa, da cannot be null");
            }

            return(Native.DllImports.l_dnaaReplaceDna((HandleRef)daa, index, (HandleRef)da));
        }
Esempio n. 6
0
        // Add Dna to Dnaa
        public static int l_dnaaAddDna(this L_Dnaa daa, L_Dna da, int copyflag)
        {
            if (null == daa ||
                null == da)
            {
                throw new ArgumentNullException("daa, da cannot be null");
            }

            return(Native.DllImports.l_dnaaAddDna((HandleRef)daa, (HandleRef)da, copyflag));
        }
Esempio n. 7
0
        public static void l_dnaaDestroy(this L_Dnaa pdaa)
        {
            if (null == pdaa)
            {
                throw new ArgumentNullException("pdaa cannot be null");
            }

            var pointer = (IntPtr)pdaa;

            Native.DllImports.l_dnaaDestroy(ref pointer);
        }
Esempio n. 8
0
        public static int l_dnaaWrite(string filename, L_Dnaa daa)
        {
            if (string.IsNullOrWhiteSpace(filename))
            {
                throw new ArgumentNullException("filename cannot be null");
            }
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaWrite(filename, (HandleRef)daa));
        }
Esempio n. 9
0
        public static L_Dna l_dnaaGetDna(this L_Dnaa daa, int index, int accessflag)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            var pointer = Native.DllImports.l_dnaaGetDna((HandleRef)daa, index, accessflag);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new L_Dna(pointer));
            }
        }