public static int Write(RubyIO /*!*/ self, [NotNull] MutableString /*!*/ val) { int bytesWritten = val.IsEmpty ? 0 : self.WriteBytes(val, 0, val.GetByteCount()); if (self.AutoFlush) { self.Flush(); } return(bytesWritten); }
public static int Write(RubyIO /*!*/ self, [NotNull] MutableString /*!*/ val) { self.AssertOpenedForWriting(); int bytesWritten = self.Write(val); if (self.AutoFlush) { self.Flush(); } return(bytesWritten); }
public static int SysWrite(BinaryOpStorage /*!*/ writeStorage, ConversionStorage <MutableString> /*!*/ tosConversion, RubyContext /*!*/ context, RubyIO /*!*/ self, [NotNull] MutableString /*!*/ val) { RubyBufferedStream stream = self.GetWritableStream(); if (stream.DataBuffered) { PrintOps.ReportWarning(writeStorage, tosConversion, MutableString.CreateAscii("syswrite for buffered IO")); } int bytes = Write(self, val); self.Flush(); return(bytes); }
public static int SysWrite(BinaryOpStorage/*!*/ writeStorage, ConversionStorage<MutableString>/*!*/ tosConversion, RubyContext/*!*/ context, RubyIO/*!*/ self, [NotNull]MutableString/*!*/ val) { RubyBufferedStream stream = self.GetWritableStream(); if (stream.DataBuffered) { PrintOps.ReportWarning(writeStorage, tosConversion, MutableString.CreateAscii("syswrite for buffered IO")); } int bytes = Write(self, val); self.Flush(); return bytes; }
public static int Write(RubyIO/*!*/ self, [NotNull]MutableString/*!*/ val) { int bytesWritten = val.IsEmpty ? 0 : self.WriteBytes(val, 0, val.GetByteCount()); if (self.AutoFlush) { self.Flush(); } return bytesWritten; }
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 void Flush(RubyIO/*!*/ self) { self.Flush(); }
public static int Write(RubyIO/*!*/ self, [NotNull]MutableString/*!*/ val) { self.AssertOpenedForWriting(); int bytesWritten = self.Write(val); if (self.AutoFlush) { self.Flush(); } return bytesWritten; }
public static void Flush(RubyIO/*!*/ self) { self.AssertOpenedForWriting(); self.Flush(); }
public static void Flush(RubyIO /*!*/ self) { self.AssertOpenedForWriting(); self.Flush(); }
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 void Flush(RubyIO /*!*/ self) { self.Flush(); }