Exemple #1
0
        public static float?CursorGetFloat(HDFqlCursor cursor)
        {
            IntPtr pointer = HDFqlPINVOKE.CursorGetFloat(HDFqlCursor.getCPtr(cursor));

            if (pointer == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                float [] value = new float[1];
                Marshal.Copy(pointer, value, 0, 1);
                return(value[0]);
            }
        }
Exemple #2
0
        public static uint?CursorGetUnsignedInt(HDFqlCursor cursor)
        {
            IntPtr pointer = HDFqlPINVOKE.CursorGetUnsignedInt(HDFqlCursor.getCPtr(cursor));

            if (pointer == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                int [] value = new int[1];
                Marshal.Copy(pointer, value, 0, 1);
                return((uint)value[0]);
            }
        }
Exemple #3
0
        public static ulong?SubcursorGetUnsignedBigInt(HDFqlCursor cursor)
        {
            IntPtr pointer = HDFqlPINVOKE.SubcursorGetUnsignedBigInt(HDFqlCursor.getCPtr(cursor));

            if (pointer == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                long [] value = new long[1];
                Marshal.Copy(pointer, value, 0, 1);
                return((ulong)value[0]);
            }
        }
Exemple #4
0
        public static byte?SubcursorGetUnsignedTinyInt(HDFqlCursor cursor)
        {
            IntPtr pointer = HDFqlPINVOKE.SubcursorGetUnsignedTinyInt(HDFqlCursor.getCPtr(cursor));

            if (pointer == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                char [] value = new char[1];
                Marshal.Copy(pointer, value, 0, 1);
                return((byte)value[0]);
            }
        }
Exemple #5
0
        public static ushort?SubcursorGetUnsignedSmallInt(HDFqlCursor cursor)
        {
            IntPtr pointer = HDFqlPINVOKE.SubcursorGetUnsignedSmallInt(HDFqlCursor.getCPtr(cursor));

            if (pointer == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                short [] value = new short[1];
                Marshal.Copy(pointer, value, 0, 1);
                return((ushort)value[0]);
            }
        }
Exemple #6
0
        public static double?SubcursorGetDouble(HDFqlCursor cursor)
        {
            IntPtr pointer = HDFqlPINVOKE.SubcursorGetDouble(HDFqlCursor.getCPtr(cursor));

            if (pointer == IntPtr.Zero)
            {
                return(null);
            }
            else
            {
                double [] value = new double[1];
                Marshal.Copy(pointer, value, 0, 1);
                return(value[0]);
            }
        }
Exemple #7
0
        public static int SubcursorGetSize(HDFqlCursor cursor)
        {
            int ret = HDFqlPINVOKE.SubcursorGetSize(HDFqlCursor.getCPtr(cursor));

            return(ret);
        }
Exemple #8
0
        public static int SubcursorRelative(HDFqlCursor cursor, int position)
        {
            int ret = HDFqlPINVOKE.SubcursorRelative(HDFqlCursor.getCPtr(cursor), position);

            return(ret);
        }
Exemple #9
0
        public static int CursorAbsolute(HDFqlCursor cursor, int position)
        {
            int ret = HDFqlPINVOKE.CursorAbsolute(HDFqlCursor.getCPtr(cursor), position);

            return(ret);
        }
Exemple #10
0
        public static int SubcursorPrevious(HDFqlCursor cursor)
        {
            int ret = HDFqlPINVOKE.SubcursorPrevious(HDFqlCursor.getCPtr(cursor));

            return(ret);
        }
Exemple #11
0
        public static int CursorNext(HDFqlCursor cursor)
        {
            int ret = HDFqlPINVOKE.CursorNext(HDFqlCursor.getCPtr(cursor));

            return(ret);
        }
Exemple #12
0
        public static int CursorGetPosition(HDFqlCursor cursor)
        {
            int ret = HDFqlPINVOKE.CursorGetPosition(HDFqlCursor.getCPtr(cursor));

            return(ret);
        }
Exemple #13
0
        public static int CursorClone(HDFqlCursor cursorOriginal, HDFqlCursor cursorClone)
        {
            int ret = HDFqlPINVOKE.CursorClone(HDFqlCursor.getCPtr(cursorOriginal), HDFqlCursor.getCPtr(cursorClone));

            return(ret);
        }
Exemple #14
0
        public static string SubcursorGetChar(HDFqlCursor cursor)
        {
            string ret = HDFqlPINVOKE.SubcursorGetChar(HDFqlCursor.getCPtr(cursor));

            return(ret);
        }