Exemplo n.º 1
0
 static bool CanTruncateCallback(IntPtr seekable)
 {
     try {
         GLib.SeekableImplementor __obj = GLib.Object.GetObject(seekable, false) as GLib.SeekableImplementor;
         bool __result = __obj.CanTruncate();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Exemplo n.º 2
0
        static bool SeekCallback(IntPtr seekable, long offset, GLib.SeekType type, IntPtr cancellable, out IntPtr error)
        {
            error = IntPtr.Zero;

            try {
                GLib.SeekableImplementor __obj = GLib.Object.GetObject(seekable, false) as GLib.SeekableImplementor;
                bool __result = __obj.Seek(offset, type, GLib.Object.GetObject(cancellable) as GLib.Cancellable);
                return(__result);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: above call does not return.
                throw e;
            }
        }