public ReallocFuncWrapper(GLib.ReallocFunc managed) { this.managed = managed; if (managed != null) { NativeDelegate = new ReallocFuncNative(NativeCallback); } }
public MemoryOutputStream(IntPtr data, ulong len, GLib.ReallocFunc realloc_fn, GLib.DestroyNotify destroy) : base(IntPtr.Zero) { if (GetType() != typeof(MemoryOutputStream)) { throw new InvalidOperationException("Can't override this constructor."); } GLibSharp.ReallocFuncWrapper realloc_fn_wrapper = new GLibSharp.ReallocFuncWrapper(realloc_fn); Raw = g_memory_output_stream_new(data, new UIntPtr(len), realloc_fn_wrapper.NativeDelegate, destroy); }
public ReallocFuncWrapper (GLib.ReallocFunc managed) { this.managed = managed; if (managed != null) NativeDelegate = new ReallocFuncNative (NativeCallback); }