4 writes to Length
PresentationCore (4)
MS\Internal\IO\Packaging\NetStream.cs (4)
626block.Length = _additionalRequestMinSize; 778block.Length -= bytesAvailable; 785block.Length = (int)(data.Offset - block.Offset); 1145block.Length = (int)Math.Min(block.Length, _fullStreamLength - block.Offset);
18 references to Length
PresentationCore (18)
MS\Internal\IO\Packaging\NetStream.cs (18)
612if (block.Offset > (Int32.MaxValue - block.Length + 1)) 619if (block.Length < _additionalRequestMinSize) 624block.Offset, block.Length, _additionalRequestMinSize); 632System.Diagnostics.Trace.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1}", block.Offset, block.Length); 642if (block.Length > 0) 648ranges[0, 1] = block.Length; 729bytesAvailable = Math.Min(block.Length, (int)(data.End - block.Offset)); 772bytesAvailable = block.Length; 941Debug.Assert(block.Length > 0); 951bytesAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 954if (bytesAvailable == block.Length) 998dataAvailable = block.Length; 1015dataAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1033if (block.Length == 0) 1041Debug.Assert(block.Length > 0); 1047dataAvailable = (int)Math.Min(block.Length, _highWaterMark - block.Offset); 1066&& ((_byteRangeDownloader == null) || !_byteRangeDownloader.ErroredOut) && (block.Length > 0)) 1145block.Length = (int)Math.Min(block.Length, _fullStreamLength - block.Offset);