6 writes to _offsetMax
dotnet-svcutil-lib (6)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (6)
98_offsetMax = offset + count; 116_offsetMax = 0; 204_buffer[_offsetMax++] = (byte)b; 236_offsetMax += actual; 259_offsetMax += count; 276_offsetMax = windowOffset + (_offsetMax - _offset);
24 references to _offsetMax
dotnet-svcutil-lib (24)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (24)
127return _offset == _offsetMax && !TryEnsureByte(); 134if (offset < _offsetMax) 154if (offset <= _offsetMax - count) 162if (offset <= _offsetMax - count) 169offsetMax = _offsetMax; 177offsetMax = _offsetMax; 198DiagnosticUtility.DebugAssert(_offsetMax < _windowOffsetMax, ""); 199if (_offsetMax >= _buffer.Length) 220if (newOffsetMax < _offsetMax) 226System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 230int needed = newOffsetMax - _offsetMax; 233int actual = _stream.Read(_buffer, _offsetMax, needed); 244DiagnosticUtility.DebugAssert(_offset + count <= _offsetMax, ""); 251if (_offsetMax > buffer.Length - count) 253byte[] newBuffer = new byte[_offsetMax + count]; 254System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 258System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count, _offsetMax - _offset); 275System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset, _offsetMax - _offset); 276_offsetMax = windowOffset + (_offsetMax - _offset); 280_windowOffsetMax = Math.Max(windowOffset + windowLength, _offsetMax); 291DiagnosticUtility.DebugAssert(value >= _offsetMin && value <= _offsetMax, ""); 300if (offset > _offsetMax - count) 1385for (int i = _offsetMin; i < _offsetMax; i++) 1389if (i + 1 < _offsetMax && _buffer[i + 1] == (byte)10)