예제 #1
0
        public override void Flush()
        {
            if (!CanSeek)
            {
                throw new Exception(SR.GetStreamIsClosed);
            }

            _view.Flush((UIntPtr)Capacity);
        }
예제 #2
0
        public void Flush()
        {
            if (!IsOpen)
            {
                throw new ObjectDisposedException(nameof(MemoryMappedViewAccessor), SR.ObjectDisposed_ViewAccessorClosed);
            }

            unsafe
            {
                _view.Flush((UIntPtr)Capacity);
            }
        }