Exemplo n.º 1
0
Arquivo: DBC.cs Projeto: joegana/BDBC
        private DB_STREAM db_stream(uint flags, ref int err)
        {
            global::System.IntPtr cPtr = libdb_csharpPINVOKE.DBC_db_stream(swigCPtr, flags, ref err);
            DB_STREAM             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new DB_STREAM(cPtr, false);

            return(ret);
        }
Exemplo n.º 2
0
        internal DB get_db()
        {
            global::System.IntPtr cPtr = libdb_csharpPINVOKE.DB_SEQUENCE_get_db(swigCPtr);
            DB ret = (cPtr == global::System.IntPtr.Zero) ? null : new DB(cPtr, false);

            return(ret);
        }
Exemplo n.º 3
0
Arquivo: DBC.cs Projeto: joegana/BDBC
        private DBC dup(uint flags, ref int err)
        {
            global::System.IntPtr cPtr = libdb_csharpPINVOKE.DBC_dup(swigCPtr, flags, ref err);
            DBC ret = (cPtr == global::System.IntPtr.Zero) ? null : new DBC(cPtr, false);

            return(ret);
        }
Exemplo n.º 4
0
        public void PropertyBufferSetData()
        {
            tlog.Debug(tag, $"PropertyBufferSetData START");

            PropertyMap buffer = new PropertyMap();

            Assert.IsNotNull(buffer, "should be not null");
            Assert.IsInstanceOf <PropertyMap>(buffer, "should be an instance of PropertyMap class!");
            buffer.Add("aIndex", new PropertyValue((int)PropertyType.Float));
            buffer.Add("aValue", new PropertyValue((int)PropertyType.Float));

            var testingTarget = new PropertyBuffer(buffer);

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <PropertyBuffer>(testingTarget, "Should be an instance of PropertyBuffer class!");
            try
            {
                global::System.IntPtr data = new global::System.IntPtr();
                testingTarget.SetData(data, 0);
            }
            catch (Exception e)
            {
                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
                Assert.Fail("Caught Exception" + e.ToString());
            }
            Assert.AreEqual(0, testingTarget.GetSize(), "Should be Equal.");

            testingTarget.Dispose();
            buffer.Dispose();
            tlog.Debug(tag, $"PropertyBufferSetData END (OK)");
        }
Exemplo n.º 5
0
        internal DB_ENV env()
        {
            global::System.IntPtr cPtr = libdb_csharpPINVOKE.DB_env(swigCPtr);
            DB_ENV ret = (cPtr == global::System.IntPtr.Zero) ? null : new DB_ENV(cPtr, false);

            return(ret);
        }
Exemplo n.º 6
0
        private DBC cursor(DB_TXN txn, uint flags, ref int err)
        {
            global::System.IntPtr cPtr = libdb_csharpPINVOKE.DB_cursor(swigCPtr, DB_TXN.getCPtr(txn), flags, ref err);
            DBC ret = (cPtr == global::System.IntPtr.Zero) ? null : new DBC(cPtr, false);

            return(ret);
        }
Exemplo n.º 7
0
        private DBC join(IntPtr[] curslist, uint flags, ref int err)
        {
            global::System.IntPtr cPtr = libdb_csharpPINVOKE.DB_join(swigCPtr, curslist, flags, ref err);
            DBC ret = (cPtr == global::System.IntPtr.Zero) ? null : new DBC(cPtr, false);

            return(ret);
        }
Exemplo n.º 8
0
 static internal void SetResult(global::System.IntPtr data, bool res)
 {
     Interop.DoGestureSignal.SetResult(data, res);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 9
0
        static internal string ConvertParam1(global::System.IntPtr data)
        {
            string result = Interop.StringToVoidSignal.ConvertParam1(data);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
Exemplo n.º 10
0
        static internal bool GetResult(global::System.IntPtr data)
        {
            bool ret = Interop.DoGestureSignal.GetResult(data);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 11
0
        public void ColorGetColorFromPtr()
        {
            tlog.Debug(tag, $"ColorGetColorFromPtr START");

            using (Color color = Color.Cyan)
            {
                global::System.IntPtr cPtr = (global::System.IntPtr)Color.getCPtr(color);

                var testingTarget = Color.GetColorFromPtr(cPtr);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <Color>(testingTarget, "Should return Color instance.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"ColorGetColorFromPtr END (OK)");
        }
Exemplo n.º 12
0
        public void NUIApplicationAppControlEventArgsVoidPSet()
        {
            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsVoidPSet START");

            var dummy         = new global::System.IntPtr(0);
            var testingTarget = new NUIApplicationAppControlEventArgs();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <NUIApplicationAppControlEventArgs>(testingTarget, "should be an instance of testing target class!");

            testingTarget.VoidP = dummy;

            var result = testingTarget.VoidP;

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.AreEqual(dummy, result, "Retrieved result should be equal to dummy.");

            tlog.Debug(tag, $"NUIApplicationAppControlEventArgsVoidPSet END (OK)");
        }
Exemplo n.º 13
0
 public MyWebContextMenu(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 14
0
 public MyWebCertificate(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 15
0
 public MyConnectionTrackerInterface(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 16
0
 internal TimePeriod(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 17
0
 public MyPageFactory(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 18
0
 internal GLWindow(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.GLWindow.GlWindow_SWIGUpcast(cPtr), cMemoryOwn)
 {
 }
Exemplo n.º 19
0
 internal StringToVoidSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 20
0
 internal DB_SEQUENCE(global::System.IntPtr cPtr, bool cMemoryOwn)
 {
     swigCMemOwn = cMemoryOwn;
     swigCPtr    = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
Exemplo n.º 21
0
 public MyWebHttpRequestInterceptor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 22
0
 public MyWatchApplication(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 23
0
 public MyCustomActorImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 24
0
 public MyWebPasswordDataList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 25
0
 public MyWebFormRepostPolicyDecisionMaker(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 26
0
 public MyComponentApplication(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 27
0
 internal EncodedImageBuffer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 28
0
 public MyItemLayout(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 29
0
 public MyWebConsoleMessage(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Exemplo n.º 30
0
 public MyCameraView(global::System.IntPtr handle, DisplayType type = DisplayType.Window) : base(handle, type)
 {
 }