1 write to _expectedFinalSize
System.Net.Http (1)
System\Net\Http\HttpContent.cs (1)
817
_expectedFinalSize
= (int)expectedFinalSize;
8 references to _expectedFinalSize
System.Net.Http (8)
System\Net\Http\HttpContent.cs (8)
789
/// <summary>Controls how quickly we're willing to expand up to <see cref="
_expectedFinalSize
"/> when a caller requested that the last buffer should not be pooled.
841
Debug.Assert(!_shouldPoolFinalSize ||
_expectedFinalSize
== 0);
936
int minCapacity =
_expectedFinalSize
== 0
938
: Math.Min(
_expectedFinalSize
, MaxInitialBufferSize / LastResizeFactor);
955
if (!_shouldPoolFinalSize && newTotalCapacity >=
_expectedFinalSize
/ LastResizeFactor)
963
newBuffer = new byte[_totalLength + buffer.Length <=
_expectedFinalSize
?
_expectedFinalSize
: newTotalCapacity];
983
Debug.Assert(_shouldPoolFinalSize || newBuffer.Length !=
_expectedFinalSize
);