6 writes to _offsetMax
System.Private.DataContractSerialization (6)
System\Xml\XmlBufferReader.cs (6)
93_offsetMax = offset + count; 111_offsetMax = 0; 199_buffer[_offsetMax++] = (byte)b; 237_offsetMax += read; 263_offsetMax += count; 280_offsetMax = windowOffset + (_offsetMax - _offset);
24 references to _offsetMax
System.Private.DataContractSerialization (24)
System\Xml\XmlBufferReader.cs (24)
122return _offset == _offsetMax && !TryEnsureByte(); 129if (offset < _offsetMax) 149if (offset <= _offsetMax - count) 157if (offset <= _offsetMax - count) 164offsetMax = _offsetMax; 172offsetMax = _offsetMax; 193Debug.Assert(_offsetMax < _windowOffsetMax); 194if (_offsetMax >= _buffer.Length) 223if (newOffsetMax <= _offsetMax) 229System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 234int needed = newOffsetMax - _offsetMax; 236int read = _stream.ReadAtLeast(_buffer.AsSpan(_offsetMax, needed), needed, throwOnEndOfStream: false); 248Debug.Assert(_offset + count <= _offsetMax); 255if (_offsetMax > buffer.Length - count) 257byte[] newBuffer = new byte[_offsetMax + count]; 258System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 262System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count, _offsetMax - _offset); 279System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset, _offsetMax - _offset); 280_offsetMax = windowOffset + (_offsetMax - _offset); 284_windowOffsetMax = Math.Max(windowOffset + windowLength, _offsetMax); 295Debug.Assert(value >= _offsetMin && value <= _offsetMax); 304if (offset > _offsetMax - count) 1237for (int i = _offsetMin; i < _offsetMax; i++) 1241if (i + 1 < _offsetMax && _buffer[i + 1] == (byte)10)