3 writes to _buffer
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (3)
87
_buffer
= shadowBuffer;
93
_buffer
= new byte[_bufferSize];
141
_buffer
= null;
22 references to _buffer
dotnet-svcutil-lib (22)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (22)
76
Contract.Assert(
_buffer
!= null);
80
if (
_buffer
.Length != _bufferSize || _bufferSize >= MaxShadowBufferSize)
86
Array.Copy(
_buffer
, 0, shadowBuffer, 0, _writePos);
92
if (
_buffer
== null)
202
Contract.Assert(
_buffer
!= null && _bufferSize >= _writePos,
205
_stream.Write(
_buffer
, 0, _writePos);
212
Contract.Assert(
_buffer
!= null && _bufferSize >= _writePos,
215
await _stream.WriteAsync(
_buffer
, 0, _writePos, cancellationToken).ConfigureAwait(false);
244
Array.Copy(array, offset,
_buffer
, _writePos, bytesToWrite);
357
Contract.Assert(
_buffer
!= null);
359
_stream.Write(
_buffer
, 0, _writePos);
373
Contract.Assert(
_buffer
!= null);
380
Array.Copy(array, offset,
_buffer
, _writePos, count);
381
_stream.Write(
_buffer
, 0, totalUserBytes);
386
_stream.Write(
_buffer
, 0, _writePos);
483
Contract.Assert(
_buffer
!= null);
485
await _stream.WriteAsync(
_buffer
, 0, _writePos, cancellationToken).ConfigureAwait(false);
500
Contract.Assert(
_buffer
!= null);
507
Buffer.BlockCopy(array, offset,
_buffer
, _writePos, count);
508
await _stream.WriteAsync(
_buffer
, 0, totalUserBytes, cancellationToken).ConfigureAwait(false);
513
await _stream.WriteAsync(
_buffer
, 0, _writePos, cancellationToken).ConfigureAwait(false);
537
_buffer
[_writePos++] = value;