Beispiel #1
0
 public static int Seek(StringIO /*!*/ self, [DefaultProtocol] int pos, [DefaultProtocol, DefaultParameterValue(RubyIO.SEEK_SET)] int seekOrigin)
 {
     self.SetPosition(RubyIO.GetSeekPosition(
                          self._content.GetByteCount(), self._position, pos, RubyIO.ToSeekOrigin(seekOrigin)
                          ));
     return(0);
 }
Beispiel #2
0
 public static int Seek(StringIO/*!*/ self, [DefaultProtocol]int pos, [DefaultProtocol, DefaultParameterValue(RubyIO.SEEK_SET)]int seekOrigin) {
     self.SetPosition(RubyIO.GetSeekPosition(
         self._content.GetByteCount(), self._position, pos, RubyIO.ToSeekOrigin(seekOrigin)
     ));
     return 0;
 }
Beispiel #3
0
 public static void Pos(StringIO /*!*/ self, [DefaultProtocol] int pos)
 {
     self.SetPosition(pos);
 }
Beispiel #4
0
 public static void Pos(StringIO/*!*/ self, [DefaultProtocol]int pos) {
     self.SetPosition(pos);
 }