public static HandleRef getCPtrAndSetReference(GCP obj, object parent) { if (obj != null) { obj.swigParentRef = parent; return(obj.swigCPtr); } else { return(new HandleRef(null, IntPtr.Zero)); } }
public static HandleRef getCPtrAndDisown(GCP obj, object parent) { if (obj != null) { obj.swigCMemOwn = false; obj.swigParentRef = parent; return(obj.swigCPtr); } else { return(new HandleRef(null, IntPtr.Zero)); } }
public GCP[] GetGCPs() { /*hello*/ IntPtr cPtr = __GetGCPs(); int length = GetGCPCount(); GCP[] ret = null; if (cPtr != IntPtr.Zero && length > 0) { ret = new GCP[length]; for (int i = 0; i < length; i++) { ret[i] = __ReadCArrayItem_GDAL_GCP(cPtr, i); } } GC.KeepAlive(this); return(ret); }
public static HandleRef getCPtr(GCP obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }