Flush() public method

public Flush ( ) : void
return void
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public static int Write(RubyIO /*!*/ self, [NotNull] MutableString /*!*/ val)
        {
            self.AssertOpenedForWriting();
            int bytesWritten = self.Write(val);

            if (self.AutoFlush)
            {
                self.Flush();
            }
            return(bytesWritten);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 6
0
 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();
 }
Ejemplo n.º 7
0
 public static void Flush(RubyIO/*!*/ self) {
     self.Flush();
 }
Ejemplo n.º 8
0
 public static int Write(RubyIO/*!*/ self, [NotNull]MutableString/*!*/ val) {
     self.AssertOpenedForWriting();
     int bytesWritten = self.Write(val);
     if (self.AutoFlush) {
         self.Flush();
     }
     return bytesWritten;
 }
Ejemplo n.º 9
0
 public static void Flush(RubyIO/*!*/ self) {
     self.AssertOpenedForWriting();
     self.Flush();
 }
Ejemplo n.º 10
0
 public static void Flush(RubyIO /*!*/ self)
 {
     self.AssertOpenedForWriting();
     self.Flush();
 }
Ejemplo n.º 11
0
 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());
 }
Ejemplo n.º 12
0
 public static void Flush(RubyIO /*!*/ self)
 {
     self.Flush();
 }