3 writes to _buffer
mscorlib (3)
system\io\bufferedstream.cs (3)
184
_buffer
= shadowBuffer;
194
_buffer
= new Byte[_bufferSize];
280
_buffer
= null;
31 references to _buffer
mscorlib (31)
system\io\bufferedstream.cs (31)
175
Contract.Assert(
_buffer
!= null);
179
if (
_buffer
.Length != _bufferSize || _bufferSize >= MaxShadowBufferSize)
183
Buffer.InternalBlockCopy(
_buffer
, 0, shadowBuffer, 0, _writePos);
193
if (
_buffer
== null)
442
Contract.Assert(
_buffer
!= null && _bufferSize >= _writePos,
445
_stream.Write(
_buffer
, 0, _writePos);
456
Contract.Assert(
_buffer
!= null && _bufferSize >= _writePos,
459
await _stream.WriteAsync(
_buffer
, 0, _writePos, cancellationToken).ConfigureAwait(false);
479
Buffer.InternalBlockCopy(
_buffer
, _readPos, array, offset, readBytes);
550
_readLen = _stream.Read(
_buffer
, 0, _bufferSize);
786
_stream.BeginRead(
_buffer
, 0, _bufferSize, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
789
_readLen = await _stream.ReadAsync(
_buffer
, 0, _bufferSize, cancellationToken).ConfigureAwait(false);
814
_readLen = _stream.Read(
_buffer
, 0, _bufferSize);
821
Int32 b =
_buffer
[_readPos++];
834
Buffer.InternalBlockCopy(array, offset,
_buffer
, _writePos, bytesToWrite);
954
Contract.Assert(
_buffer
!= null);
956
_stream.Write(
_buffer
, 0, _writePos);
969
Contract.Assert(
_buffer
!= null);
976
Buffer.InternalBlockCopy(array, offset,
_buffer
, _writePos, count);
977
_stream.Write(
_buffer
, 0, totalUserBytes);
982
_stream.Write(
_buffer
, 0, _writePos);
1185
Contract.Assert(
_buffer
!= null);
1189
_stream.BeginWrite(
_buffer
, 0, _writePos, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1192
await _stream.WriteAsync(
_buffer
, 0, _writePos, cancellationToken).ConfigureAwait(false);
1206
Contract.Assert(
_buffer
!= null);
1213
Buffer.InternalBlockCopy(array, offset,
_buffer
, _writePos, count);
1216
_stream.BeginWrite(
_buffer
, 0, totalUserBytes, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1219
await _stream.WriteAsync(
_buffer
, 0, totalUserBytes, cancellationToken).ConfigureAwait(false);
1227
_stream.BeginWrite(
_buffer
, 0, _writePos, BeginEndAwaitableAdapter.Callback, _beginEndAwaitable);
1230
await _stream.WriteAsync(
_buffer
, 0, _writePos, cancellationToken).ConfigureAwait(false);
1267
_buffer
[_writePos++] = value;