Flush() 개인적인 메소드

private Flush ( IntPtr handle, MonoIOError &error ) : bool
handle System.IntPtr
error MonoIOError
리턴 bool
예제 #1
0
        public virtual void Flush(bool flushToDisk)
        {
            FlushBuffer();

            // This does the fsync
            if (flushToDisk)
            {
                MonoIOError error;
                MonoIO.Flush(handle, out error);
            }
        }
예제 #2
0
        public virtual void Flush(bool flushToDisk)
        {
            if (safeHandle.IsClosed)
            {
                throw new ObjectDisposedException("Stream has been closed");
            }

            FlushBuffer();

            // This does the fsync
            if (flushToDisk)
            {
                MonoIOError error;
                MonoIO.Flush(safeHandle, out error);
            }
        }