예제 #1
0
            /// <summary>Seek in data</summary>
            /// <param name="offset">Offset in byte relative to whence</param>
            /// <param name="whence">Whence</param>
            /// <returns>0 on succeed, a mapping of errno otherwise</returns>
            public Eina.Error Seek(long offset, Efl.Io.PositionerWhence whence)
            {
                var _ret_var = Efl.Io.IPositionerConcrete.NativeMethods.efl_io_positioner_seek_ptr.Value.Delegate(this.NativeHandle, offset, whence);

                Eina.Error.RaiseIfUnhandledException();
                return(_ret_var);
            }
예제 #2
0
                private static Eina.Error seek(System.IntPtr obj, System.IntPtr pd, long offset, Efl.Io.PositionerWhence whence)
                {
                    Eina.Log.Debug("function efl_io_positioner_seek was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Eina.Error _ret_var = default(Eina.Error);
                        try
                        {
                            _ret_var = ((IPositioner)ws.Target).Seek(offset, whence);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_io_positioner_seek_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), offset, whence));
                    }
                }