示例#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) {}