Ejemplo n.º 1
0
 static void FillAsync_cb(IntPtr inst, IntPtr count, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
 {
     try {
         BufferedInputStream __obj = GLib.Object.GetObject(inst, false) as BufferedInputStream;
         GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker(cb, user_data);
         __obj.OnFillAsync((long)count, io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Ejemplo n.º 2
0
        static IntPtr FillFinish_cb(IntPtr inst, IntPtr result, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                BufferedInputStream __obj = GLib.Object.GetObject(inst, false) as BufferedInputStream;
                long __result;
                __result = __obj.OnFillFinish(GLib.AsyncResultAdapter.GetObject(result, false));
                return(new IntPtr(__result));
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }
Ejemplo n.º 3
0
        static IntPtr Fill_cb(IntPtr inst, IntPtr count, IntPtr cancellable, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                BufferedInputStream __obj = GLib.Object.GetObject(inst, false) as BufferedInputStream;
                long __result;
                __result = __obj.OnFill((long)count, GLib.Object.GetObject(cancellable) as GLib.Cancellable);
                return(new IntPtr(__result));
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }