protected override void OnDispose(bool disposing) { if (this.pReference != IntPtr.Zero) { GribApiProxy.GribNearestDelete(Nearest); this.Nearest = null; this.Handle = null; } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_grib_nearest obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public static void GribNearestDelete(SWIGTYPE_p_grib_nearest nearest) { int ret = GribApiProxyPINVOKE.GribNearestDelete(SWIGTYPE_p_grib_nearest.getCPtr(nearest)); if (ret != 0) { throw Grib.Api.Interop.GribApiException.Create(ret); } }
public static void GribNearestFind(SWIGTYPE_p_grib_nearest nearest, GribHandle h, double inlat, double inlon, uint flags, double[] outlats, double[] outlons, double[] values, double[] distances, int[] indexes, ref SizeT len) { int ret = GribApiProxyPINVOKE.GribNearestFind(SWIGTYPE_p_grib_nearest.getCPtr(nearest), h.Reference, inlat, inlon, flags, outlats, outlons, values, distances, indexes, ref len.Value); if (ret != 0) { throw Grib.Api.Interop.GribApiException.Create(ret); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_grib_nearest obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
internal GribNearest(SWIGTYPE_p_grib_nearest nearest, GribHandle handle) : base() { this.Reference = SWIGTYPE_p_grib_nearest.getCPtr(nearest); this.Nearest = nearest; this.Handle = handle; }