getCPtr() static private method

static private getCPtr ( Storable obj ) : HandleRef
obj Storable
return System.Runtime.InteropServices.HandleRef
Exemplo n.º 1
0
        public new static Acct ot_dynamic_cast(Storable pObject)
        {
            IntPtr cPtr = otapiPINVOKE.Acct_ot_dynamic_cast(Storable.getCPtr(pObject));
            Acct   ret  = (cPtr == IntPtr.Zero) ? null : new Acct(cPtr, false);

            return(ret);
        }
Exemplo n.º 2
0
        public new static StringMap ot_dynamic_cast(Storable pObject)
        {
            IntPtr    cPtr = otapiPINVOKE.StringMap_ot_dynamic_cast(Storable.getCPtr(pObject));
            StringMap ret  = (cPtr == IntPtr.Zero) ? null : new StringMap(cPtr, false);

            return(ret);
        }
Exemplo n.º 3
0
        public new static Server ot_dynamic_cast(Storable pObject)
        {
            IntPtr cPtr = otapiPINVOKE.Server_ot_dynamic_cast(Storable.getCPtr(pObject));
            Server ret  = (cPtr == IntPtr.Zero) ? null : new Server(cPtr, false);

            return(ret);
        }
Exemplo n.º 4
0
        public new static TradeListNym ot_dynamic_cast(Storable pObject)
        {
            IntPtr       cPtr = otapiPINVOKE.TradeListNym_ot_dynamic_cast(Storable.getCPtr(pObject));
            TradeListNym ret  = (cPtr == IntPtr.Zero) ? null : new TradeListNym(cPtr, false);

            return(ret);
        }
Exemplo n.º 5
0
        public new static Blob ot_dynamic_cast(Storable pObject)
        {
            IntPtr cPtr = otapiPINVOKE.Blob_ot_dynamic_cast(Storable.getCPtr(pObject));
            Blob   ret  = (cPtr == IntPtr.Zero) ? null : new Blob(cPtr, false);

            return(ret);
        }
Exemplo n.º 6
0
        public static string EncodeObject(Storable theContents)
        {
            string ret = otapiPINVOKE.EncodeObject(Storable.getCPtr(theContents));

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 7
0
        public static bool StoreObject(Storable theContents, string strFolder)
        {
            bool ret = otapiPINVOKE.StoreObject__SWIG_3(Storable.getCPtr(theContents), strFolder);

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 8
0
        public bool StoreObject(Storable theContents, string strFolder, string oneStr, string twoStr)
        {
            bool ret = otapiPINVOKE.Storage_StoreObject__SWIG_1(swigCPtr, Storable.getCPtr(theContents), strFolder, oneStr, twoStr);

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }