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)
122
return _offset ==
_offsetMax
&& !TryEnsureByte();
129
if (offset <
_offsetMax
)
149
if (offset <=
_offsetMax
- count)
157
if (offset <=
_offsetMax
- count)
164
offsetMax =
_offsetMax
;
172
offsetMax =
_offsetMax
;
193
Debug.Assert(
_offsetMax
< _windowOffsetMax);
194
if (
_offsetMax
>= _buffer.Length)
223
if (newOffsetMax <=
_offsetMax
)
229
System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0,
_offsetMax
);
234
int needed = newOffsetMax -
_offsetMax
;
236
int read = _stream.ReadAtLeast(_buffer.AsSpan(
_offsetMax
, needed), needed, throwOnEndOfStream: false);
248
Debug.Assert(_offset + count <=
_offsetMax
);
255
if (
_offsetMax
> buffer.Length - count)
257
byte[] newBuffer = new byte[
_offsetMax
+ count];
258
System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0,
_offsetMax
);
262
System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count,
_offsetMax
- _offset);
279
System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset,
_offsetMax
- _offset);
280
_offsetMax = windowOffset + (
_offsetMax
- _offset);
284
_windowOffsetMax = Math.Max(windowOffset + windowLength,
_offsetMax
);
295
Debug.Assert(value >= _offsetMin && value <=
_offsetMax
);
304
if (offset >
_offsetMax
- count)
1237
for (int i = _offsetMin; i <
_offsetMax
; i++)
1241
if (i + 1 <
_offsetMax
&& _buffer[i + 1] == (byte)10)