public static object SysSeek(RubyIO /*!*/ self, [DefaultProtocol] IntegerValue pos, [DefaultProtocol, DefaultParameterValue(SEEK_SET)] int seekOrigin) { self.Flush(); self.Seek(pos.ToInt64(), RubyIO.ToSeekOrigin(seekOrigin)); return(pos.ToObject()); }
public static int Seek(RubyIO /*!*/ self, [DefaultProtocol] IntegerValue pos, [DefaultProtocol, DefaultParameterValue(SEEK_SET)] int seekOrigin) { self.Seek(pos.ToInt64(), RubyIO.ToSeekOrigin(seekOrigin)); return(0); }