public Attribute CreateAttribute(string name, int nDimensions, SWIGTYPE_p_GUIntBig dimensions, ExtendedDataType data_type, string[] options) { IntPtr cPtr = GdalPINVOKE.Group_CreateAttribute(swigCPtr, name, nDimensions, SWIGTYPE_p_GUIntBig.getCPtr(dimensions), ExtendedDataType.getCPtr(data_type), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null); Attribute ret = (cPtr == IntPtr.Zero) ? null : new Attribute(cPtr, true, ThisOwn_true()); if (GdalPINVOKE.SWIGPendingException.Pending) { throw GdalPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static HandleRef getCPtr(SWIGTYPE_p_GUIntBig obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }