6 writes to offsetMax
System.Runtime.Serialization (6)
System\Xml\XmlBufferReader.cs (6)
92this.offsetMax = offset + count; 110this.offsetMax = 0; 199buffer[offsetMax++] = (byte)b; 233offsetMax += actual; 263offsetMax += count; 280offsetMax = windowOffset + (offsetMax - offset);
24 references to offsetMax
System.Runtime.Serialization (24)
System\Xml\XmlBufferReader.cs (24)
121return offset == offsetMax && !TryEnsureByte(); 128if (offset < offsetMax) 148if (offset <= this.offsetMax - count) 156if (offset <= this.offsetMax - count) 163offsetMax = this.offsetMax; 171offsetMax = this.offsetMax; 192if (offsetMax >= windowOffsetMax) 194if (offsetMax >= buffer.Length) 216if (newOffsetMax < offsetMax) 223System.Buffer.BlockCopy(this.buffer, 0, newBuffer, 0, offsetMax); 227int needed = newOffsetMax - offsetMax; 230int actual = stream.Read(buffer, offsetMax, needed); 248Fx.Assert(this.offset + count <= offsetMax, ""); 255if (offsetMax > buffer.Length - count) 257byte[] newBuffer = new byte[offsetMax + count]; 258System.Buffer.BlockCopy(this.buffer, 0, newBuffer, 0, this.offsetMax); 262System.Buffer.BlockCopy(this.buffer, this.offset, this.buffer, this.offset + count, this.offsetMax - this.offset); 279System.Buffer.BlockCopy(buffer, offset, buffer, windowOffset, offsetMax - offset); 280offsetMax = windowOffset + (offsetMax - offset); 284this.windowOffsetMax = Math.Max(windowOffset + windowLength, offsetMax); 295Fx.Assert(value >= offsetMin && value <= offsetMax, ""); 304if (offset > offsetMax - count) 1412for (int i = offsetMin; i < offsetMax; i++) 1416if (i + 1 < offsetMax && buffer[i + 1] == (byte)10)