System.IO.StreamWriter.FlushBytes()

Here are the examples of the csharp api System.IO.StreamWriter.FlushBytes() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

19 Source : StreamWriter.cs
with MIT License
from GrapeCity

public override void Flush()
        {
            if (DisposedAlready)
                throw new ObjectDisposedException("StreamWriter");

            Decode();
            if (byte_pos > 0)
            {
                FlushBytes();
                internalStream.Flush();
            }
        }

19 Source : StreamWriter.cs
with MIT License
from GrapeCity

void Decode()
        {
            if (byte_pos > 0)
                FlushBytes();
            if (decode_pos > 0)
            {
                int len = internalEncoding.GetBytes(decode_buf, 0, decode_pos, byte_buf, byte_pos);
                byte_pos += len;
                decode_pos = 0;
            }
        }

19 Source : StreamWriter.cs
with MIT License
from roozbehid

void Decode () 
		{
			if (byte_pos > 0)
				FlushBytes ();
			if (decode_pos > 0) {
				int len = internalEncoding.GetBytes (decode_buf, 0, decode_pos, byte_buf, byte_pos);
				byte_pos += len;
				decode_pos = 0;
			}
		}

19 Source : StreamWriter.cs
with MIT License
from roozbehid

void FlushCore ()
		{
			Decode ();
			if (byte_pos > 0) {
				FlushBytes ();
				internalStream.Flush ();
			}
		}