public static EDTComponent Create(string name, uint offset, ExtendedDataType type) { IntPtr cPtr = GdalPINVOKE.EDTComponent_Create(name, offset, ExtendedDataType.getCPtr(type)); EDTComponent ret = (cPtr == IntPtr.Zero) ? null : new EDTComponent(cPtr, true, ThisOwn_true()); if (GdalPINVOKE.SWIGPendingException.Pending) { throw GdalPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static HandleRef getCPtrAndSetReference(EDTComponent obj, object parent) { if (obj != null) { obj.swigParentRef = parent; return(obj.swigCPtr); } else { return(new HandleRef(null, IntPtr.Zero)); } }
public static HandleRef getCPtrAndDisown(EDTComponent obj, object parent) { if (obj != null) { obj.swigCMemOwn = false; obj.swigParentRef = parent; return(obj.swigCPtr); } else { return(new HandleRef(null, IntPtr.Zero)); } }
public static HandleRef getCPtr(EDTComponent obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }