Esempio n. 1
0
        public bool save(MgJsonFile file)
        {
            bool ret = touchvgPINVOKE.MgJsonStorage_save__SWIG_1(swigCPtr, MgJsonFile.getCPtr(file));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
        public MgStorage storageForRead(MgJsonFile file)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.MgJsonStorage_storageForRead__SWIG_1(swigCPtr, MgJsonFile.getCPtr(file));
            MgStorage             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MgStorage(cPtr, false);

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