Пример #1
0
 private void setitem(int index, Lock val)
 {
     colaPINVOKE.ColaLocks_setitem(swigCPtr, index, Lock.getCPtr(val));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #2
0
 private Lock getitemcopy(int index)
 {
     Lock ret = new Lock(colaPINVOKE.ColaLocks_getitemcopy(swigCPtr, index), true);
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Пример #3
0
 public void Insert(int index, Lock x)
 {
     colaPINVOKE.ColaLocks_Insert(swigCPtr, index, Lock.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #4
0
 public void Add(Lock x)
 {
     colaPINVOKE.ColaLocks_Add(swigCPtr, Lock.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #5
0
 public static ColaLocks Repeat(Lock value, int count)
 {
     IntPtr cPtr = colaPINVOKE.ColaLocks_Repeat(Lock.getCPtr(value), count);
     ColaLocks ret = (cPtr == IntPtr.Zero) ? null : new ColaLocks(cPtr, true);
     if (colaPINVOKE.SWIGPendingException.Pending) throw colaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Пример #6
0
 internal static HandleRef getCPtr(Lock obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }