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; } }
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; } }