2 writes to _highWaterMark
PresentationCore (2)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (2)
495_highWaterMark = 0; 583_highWaterMark += read; // update the high-water mark
13 references to _highWaterMark
PresentationCore (13)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (13)
355_position = _highWaterMark; // make sure we get the full length in case they seek'd before call get_Length 576_tempFileStream.Seek(_highWaterMark, SeekOrigin.Begin); 599_fullStreamLength = _highWaterMark; 603if (_fullStreamLength == _highWaterMark) 741_byteRangesAvailable.Insert(0, new Block(0, (int)_highWaterMark)); 1016if (_highWaterMark > block.Offset) 1017bytesAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1080if (_highWaterMark > block.Offset) 1081dataAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1118if (_highWaterMark > block.Offset) 1120dataAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1137&& (_highWaterMark <= Int64.MaxValue - (long) _additionalRequestThreshold) // Ensure that we don't get overflow from the next line 1138&& (block.Offset > _highWaterMark + (long) _additionalRequestThreshold)