1 write to _bufferSize
mscorlib (1)
system\io\bufferedstream.cs (1)
115
_bufferSize
= bufferSize;
42 references to _bufferSize
mscorlib (42)
system\io\bufferedstream.cs (42)
176
Contract.Assert(
_bufferSize
> 0);
179
if (_buffer.Length !=
_bufferSize
||
_bufferSize
>= MaxShadowBufferSize)
182
Byte[] shadowBuffer = new Byte[Math.Min(
_bufferSize
+
_bufferSize
, MaxShadowBufferSize)];
190
Contract.Assert(
_bufferSize
> 0);
194
_buffer = new Byte[
_bufferSize
];
208
get { return
_bufferSize
; }
442
Contract.Assert(_buffer != null &&
_bufferSize
>= _writePos,
456
Contract.Assert(_buffer != null &&
_bufferSize
>= _writePos,
543
if (count >=
_bufferSize
) {
550
_readLen = _stream.Read(_buffer, 0,
_bufferSize
);
744
Contract.Assert(
_bufferSize
> 0);
771
if (count >=
_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
);
828
Int32 bytesToWrite = Math.Min(
_bufferSize
- _writePos, count);
933
Contract.Assert(_writePos <
_bufferSize
);
939
useBuffer = (totalUserBytes + count < (
_bufferSize
+
_bufferSize
));
946
if (_writePos <
_bufferSize
) {
953
Contract.Assert(_writePos ==
_bufferSize
);
962
Contract.Assert(_writePos <
_bufferSize
);
970
Contract.Assert(totalUserBytes >=
_bufferSize
);
973
if (totalUserBytes <= (
_bufferSize
+
_bufferSize
) && totalUserBytes <= MaxShadowBufferSize) {
1025
Contract.Assert(_writePos <
_bufferSize
);
1026
completeSynchronously = (count <
_bufferSize
- _writePos);
1109
Contract.Assert(_writePos <
_bufferSize
);
1112
completeSynchronously = (count <
_bufferSize
- _writePos);
1152
Contract.Assert(
_bufferSize
> 0);
1170
useBuffer = (totalUserBytes + count < (
_bufferSize
+
_bufferSize
));
1177
if (_writePos <
_bufferSize
) {
1184
Contract.Assert(_writePos ==
_bufferSize
);
1199
Contract.Assert(_writePos <
_bufferSize
);
1207
Contract.Assert(totalUserBytes >=
_bufferSize
);
1210
if (totalUserBytes <= (
_bufferSize
+
_bufferSize
) && totalUserBytes <= MaxShadowBufferSize) {
1264
if (_writePos >=
_bufferSize
- 1)
1269
Contract.Assert(_writePos <
_bufferSize
);