Пример #1
0
        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);
        }
Пример #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);
        }
Пример #3
0
        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);
        }
Пример #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)");
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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();
     }
 }
Пример #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);
        }
Пример #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);
        }
Пример #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)");
        }
Пример #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)");
        }
Пример #13
0
 public MyWebContextMenu(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #14
0
 public MyWebCertificate(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #15
0
 public MyConnectionTrackerInterface(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #16
0
 internal TimePeriod(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #17
0
 public MyPageFactory(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #18
0
 internal GLWindow(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.GLWindow.GlWindow_SWIGUpcast(cPtr), cMemoryOwn)
 {
 }
Пример #19
0
 internal StringToVoidSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #20
0
 internal DB_SEQUENCE(global::System.IntPtr cPtr, bool cMemoryOwn)
 {
     swigCMemOwn = cMemoryOwn;
     swigCPtr    = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
Пример #21
0
 public MyWebHttpRequestInterceptor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #22
0
 public MyWatchApplication(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #23
0
 public MyCustomActorImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #24
0
 public MyWebPasswordDataList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #25
0
 public MyWebFormRepostPolicyDecisionMaker(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #26
0
 public MyComponentApplication(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #27
0
 internal EncodedImageBuffer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #28
0
 public MyItemLayout(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #29
0
 public MyWebConsoleMessage(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
 {
 }
Пример #30
0
 public MyCameraView(global::System.IntPtr handle, DisplayType type = DisplayType.Window) : base(handle, type)
 {
 }