Пример #1
0
        public static int creat(string pathname, SWIGTYPE_p_mode_t mode)
        {
            int ret = AriaCSPINVOKE.ArUtil_creat__SWIG_1(pathname, SWIGTYPE_p_mode_t.getCPtr(mode));

            if (AriaCSPINVOKE.SWIGPendingException.Pending)
            {
                throw AriaCSPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #2
0
        public static int open(string pathname, int flags, SWIGTYPE_p_mode_t mode)
        {
            int ret = AriaCSPINVOKE.ArUtil_open__SWIG_3(pathname, flags, SWIGTYPE_p_mode_t.getCPtr(mode));

            if (AriaCSPINVOKE.SWIGPendingException.Pending)
            {
                throw AriaCSPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_mode_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }