public NotifyingMemoryStream AsWritableStream()
 {
     AssertAccessible();
     var stream = new NotifyingMemoryStream();
     stream.Closed += stream_Closed;
     _state = VolatileByteArrayState.Writing;
     return stream;
 }
 public NotifyingMemoryStream AsReadableStream()
 {
     AssertReadable();
     var stream = new NotifyingMemoryStream(_array);
     stream.Closed += stream_Closed;
     _state = VolatileByteArrayState.Reading;
     return stream;
 }
Exemplo n.º 3
0
        public NotifyingMemoryStream AsWritableStream()
        {
            AssertAccessible();
            var stream = new NotifyingMemoryStream();

            stream.Closed += stream_Closed;
            _state         = VolatileByteArrayState.Writing;
            return(stream);
        }
Exemplo n.º 4
0
        public NotifyingMemoryStream AsReadableStream()
        {
            AssertReadable();
            var stream = new NotifyingMemoryStream(_array);

            stream.Closed += stream_Closed;
            _state         = VolatileByteArrayState.Reading;
            return(stream);
        }