2 writes to _stream
mscorlib (2)
system\io\bufferedstream.cs (2)
114
_stream
= stream;
279
_stream
= null;
71 references to _stream
mscorlib (71)
system\io\bufferedstream.cs (71)
120
if (!
_stream
.CanRead && !
_stream
.CanWrite)
127
if (
_stream
== null)
134
Contract.Requires(
_stream
!= null);
136
if (!
_stream
.CanSeek)
143
Contract.Requires(
_stream
!= null);
145
if (!
_stream
.CanRead)
152
Contract.Requires(
_stream
!= null);
154
if (!
_stream
.CanWrite)
201
get { return
_stream
; }
214
get { return
_stream
!= null &&
_stream
.CanRead; }
220
get { return
_stream
!= null &&
_stream
.CanWrite; }
226
get { return
_stream
!= null &&
_stream
.CanSeek; }
237
return
_stream
.Length;
248
return
_stream
.Position + (_readPos - _readLen + _writePos);
263
_stream
.Seek(value, SeekOrigin.Begin);
271
if (disposing &&
_stream
!= null) {
275
_stream
.Close();
309
if (!
_stream
.CanSeek)
317
if (
_stream
.CanWrite ||
_stream
is BufferedStream)
318
_stream
.Flush();
325
if (
_stream
.CanWrite ||
_stream
is BufferedStream)
326
_stream
.Flush();
339
return FlushAsyncInternal(cancellationToken, this,
_stream
, _writePos, _readPos, _readLen);
405
_stream
.Seek(_readPos - _readLen, SeekOrigin.Current);
431
if (!
_stream
.CanSeek)
445
_stream
.Write(_buffer, 0, _writePos);
447
_stream
.Flush();
459
await
_stream
.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
461
await
_stream
.FlushAsync(cancellationToken).ConfigureAwait(false);
545
return
_stream
.Read(array, offset, count) + alreadySatisfied;
550
_readLen =
_stream
.Read(_buffer, 0, _bufferSize);
580
if (
_stream
== null) __Error.ReadNotSupported();
742
Contract.Assert(
_stream
!= null);
743
Contract.Assert(
_stream
.CanRead);
775
_stream
.BeginRead(array, offset, count, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
776
return bytesAlreadySatisfied +
_stream
.EndRead(await _beginEndAwaitable);
778
return bytesAlreadySatisfied + await
_stream
.ReadAsync(array, offset, count, cancellationToken).ConfigureAwait(false);
786
_stream
.BeginRead(_buffer, 0, _bufferSize, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
787
_readLen =
_stream
.EndRead(await _beginEndAwaitable);
789
_readLen = await
_stream
.ReadAsync(_buffer, 0, _bufferSize, cancellationToken).ConfigureAwait(false);
814
_readLen =
_stream
.Read(_buffer, 0, _bufferSize);
956
_stream
.Write(_buffer, 0, _writePos);
977
_stream
.Write(_buffer, 0, totalUserBytes);
982
_stream
.Write(_buffer, 0, _writePos);
987
_stream
.Write(array, offset, count);
1009
if (
_stream
== null) __Error.ReadNotSupported();
1150
Contract.Assert(
_stream
!= null);
1151
Contract.Assert(
_stream
.CanWrite);
1189
_stream
.BeginWrite(_buffer, 0, _writePos, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1190
_stream
.EndWrite(await _beginEndAwaitable);
1192
await
_stream
.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
1216
_stream
.BeginWrite(_buffer, 0, totalUserBytes, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1217
_stream
.EndWrite(await _beginEndAwaitable);
1219
await
_stream
.WriteAsync(_buffer, 0, totalUserBytes, cancellationToken).ConfigureAwait(false);
1227
_stream
.BeginWrite(_buffer, 0, _writePos, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1228
_stream
.EndWrite(await _beginEndAwaitable);
1230
await
_stream
.WriteAsync(_buffer, 0, _writePos, cancellationToken).ConfigureAwait(false);
1238
_stream
.BeginWrite(array, offset, count, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1239
_stream
.EndWrite(await _beginEndAwaitable);
1241
await
_stream
.WriteAsync(array, offset, count, cancellationToken).ConfigureAwait(false);
1284
return
_stream
.Seek(offset, origin);
1297
Contract.Assert(oldPos ==
_stream
.Position + (_readPos - _readLen));
1299
Int64 newPos =
_stream
.Seek(offset, origin);
1311
_stream
.Seek(_readLen - _readPos, SeekOrigin.Current);
1334
_stream
.SetLength(value);