4 writes to Length
PresentationCore (4)
MS\Internal\IO\Packaging\NetStream.cs (4)
637block.Length = _additionalRequestMinSize; 789block.Length -= bytesAvailable; 796block.Length = (int)(data.Offset - block.Offset); 1156block.Length = (int)Math.Min(block.Length, _fullStreamLength - block.Offset);
18 references to Length
PresentationCore (18)
MS\Internal\IO\Packaging\NetStream.cs (18)
623if (block.Offset > (Int32.MaxValue - block.Length + 1)) 630if (block.Length < _additionalRequestMinSize) 635block.Offset, block.Length, _additionalRequestMinSize); 643System.Diagnostics.Trace.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1}", block.Offset, block.Length); 653if (block.Length > 0) 659ranges[0, 1] = block.Length; 740bytesAvailable = Math.Min(block.Length, (int)(data.End - block.Offset)); 783bytesAvailable = block.Length; 952Debug.Assert(block.Length > 0); 962bytesAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 965if (bytesAvailable == block.Length) 1009dataAvailable = block.Length; 1026dataAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1044if (block.Length == 0) 1052Debug.Assert(block.Length > 0); 1058dataAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1077&& ((_byteRangeDownloader == null) || !_byteRangeDownloader.ErroredOut) && (block.Length > 0)) 1156block.Length = (int)Math.Min(block.Length, _fullStreamLength - block.Offset);