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; }
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); }