예제 #1
0
 public ReallocFuncWrapper(GLib.ReallocFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new ReallocFuncNative(NativeCallback);
     }
 }
		public static GLib.ReallocFunc GetManagedDelegate (ReallocFuncNative native)
		{
			if (native == null)
				return null;
			ReallocFuncWrapper wrapper = (ReallocFuncWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
예제 #3
0
        public static GLib.ReallocFunc GetManagedDelegate(ReallocFuncNative native)
        {
            if (native == null)
            {
                return(null);
            }
            ReallocFuncWrapper wrapper = (ReallocFuncWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
예제 #4
0
 internal ReallocFuncInvoker(ReallocFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
예제 #5
0
 internal ReallocFuncInvoker(ReallocFuncNative native_cb, IntPtr data) : this(native_cb, data, null)
 {
 }
예제 #6
0
 internal ReallocFuncInvoker(ReallocFuncNative native_cb) : this(native_cb, IntPtr.Zero, null)
 {
 }
		public ReallocFuncWrapper (GLib.ReallocFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new ReallocFuncNative (NativeCallback);
		}
		internal ReallocFuncInvoker (ReallocFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
		internal ReallocFuncInvoker (ReallocFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
		internal ReallocFuncInvoker (ReallocFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}