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; 264_offsetMax += count; 281_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); 256if (_offsetMax > _buffer.Length - count) 258byte[] newBuffer = new byte[_offsetMax + count]; 259System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 263System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count, _offsetMax - _offset); 280System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset, _offsetMax - _offset); 281_offsetMax = windowOffset + (_offsetMax - _offset); 285_windowOffsetMax = Math.Max(windowOffset + windowLength, _offsetMax); 296Debug.Assert(value >= _offsetMin && value <= _offsetMax); 305if (offset > _offsetMax - count) 1238for (int i = _offsetMin; i < _offsetMax; i++) 1242if (i + 1 < _offsetMax && _buffer[i + 1] == (byte)10)