1 write to _bufferSize
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\BufferedWriteStream.cs (1)
55
_bufferSize
= bufferSize;
31 references to _bufferSize
System.ServiceModel.Primitives (31)
System\ServiceModel\Channels\BufferedWriteStream.cs (31)
82
Contract.Assert(
_bufferSize
> 0);
85
if (_buffer.Length !=
_bufferSize
||
_bufferSize
>= MaxShadowBufferSize)
90
byte[] shadowBuffer = new byte[Math.Min(
_bufferSize
+
_bufferSize
, MaxShadowBufferSize)];
101
_buffer = _bufferManager.TakeBuffer(
_bufferSize
);
105
_buffer = new byte[
_bufferSize
];
212
Contract.Assert(_buffer != null &&
_bufferSize
>= _writePos,
222
Contract.Assert(_buffer != null &&
_bufferSize
>= _writePos,
247
int bytesToWrite = Math.Min(
_bufferSize
- _writePos, count);
344
Contract.Assert(_writePos <
_bufferSize
);
352
useBuffer = (totalUserBytes + count < (
_bufferSize
+
_bufferSize
));
359
if (_writePos <
_bufferSize
)
366
Contract.Assert(_writePos ==
_bufferSize
);
375
Contract.Assert(_writePos <
_bufferSize
);
384
Contract.Assert(totalUserBytes >=
_bufferSize
);
387
if (totalUserBytes <= (
_bufferSize
+
_bufferSize
) && totalUserBytes <= MaxShadowBufferSize)
429
Contract.Assert(_writePos <
_bufferSize
);
432
completeSynchronously = (count <
_bufferSize
- _writePos);
479
useBuffer = (totalUserBytes + count < (
_bufferSize
+
_bufferSize
));
486
if (_writePos <
_bufferSize
)
493
Contract.Assert(_writePos ==
_bufferSize
);
502
Contract.Assert(_writePos <
_bufferSize
);
512
Contract.Assert(totalUserBytes >=
_bufferSize
);
515
if (totalUserBytes <= (
_bufferSize
+
_bufferSize
) && totalUserBytes <= MaxShadowBufferSize)
543
if (_writePos >=
_bufferSize
- 1)
550
Contract.Assert(_writePos <
_bufferSize
);