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