193 writes to _bufPos
System.Private.Xml (193)
System\Xml\Core\HtmlUtf8RawTextWriter.cs (34)
64
_bufBytes[
_bufPos
++] = (byte)'"';
70
_bufBytes[
_bufPos
++] = (byte)'"';
74
_bufBytes[
_bufPos
++] = (byte)' ';
79
_bufBytes[
_bufPos
++] = (byte)'[';
81
_bufBytes[
_bufPos
++] = (byte)']';
84
_bufBytes[
_bufPos
++] = (byte)'>';
99
base._bufBytes[
_bufPos
++] = (byte)'<';
115
base._bufBytes[base.
_bufPos
++] = (byte)'>';
138
_bufBytes[base.
_bufPos
++] = (byte)'<';
139
_bufBytes[base.
_bufPos
++] = (byte)'/';
141
_bufBytes[base.
_bufPos
++] = (byte)'>';
161
_bufBytes[base.
_bufPos
++] = (byte)'<';
162
_bufBytes[base.
_bufPos
++] = (byte)'/';
164
_bufBytes[base.
_bufPos
++] = (byte)'>';
283
base._bufBytes[
_bufPos
++] = (byte)' ';
303
base._bufBytes[
_bufPos
++] = (byte)'=';
304
base._bufBytes[
_bufPos
++] = (byte)'"';
330
base._bufBytes[
_bufPos
++] = (byte)'"';
341
_bufBytes[base.
_bufPos
++] = (byte)'<';
342
_bufBytes[base.
_bufPos
++] = (byte)'?';
344
_bufBytes[base.
_bufPos
++] = (byte)' ';
348
base._bufBytes[base.
_bufPos
++] = (byte)'>';
552
_bufPos
= (int)(pDst - pDstBegin);
596
_bufPos
= (int)(pDst - pDstBegin);
640
_bufPos
= (int)(pDst - pDstBegin);
699
_bufPos
= (int)(pDst - pDstBegin);
706
base._bufBytes[
_bufPos
++] = (byte)'a';
707
base._bufBytes[
_bufPos
++] = (byte)'m';
708
base._bufBytes[
_bufPos
++] = (byte)'p';
709
base._bufBytes[
_bufPos
++] = (byte)';';
804
base._bufBytes[
_bufPos
++] = (byte)'<';
816
base._bufBytes[base.
_bufPos
++] = (byte)'<';
820
base._bufBytes[base.
_bufPos
++] = (byte)':';
829
base._bufBytes[base.
_bufPos
++] = (byte)'>';
System\Xml\Core\XmlUtf8RawTextWriter.cs (80)
118
_bufPos
+= bom.Length;
212
_bufBytes[
_bufPos
++] = (byte)'"';
218
_bufBytes[
_bufPos
++] = (byte)'"';
222
_bufBytes[
_bufPos
++] = (byte)' ';
227
_bufBytes[
_bufPos
++] = (byte)'[';
229
_bufBytes[
_bufPos
++] = (byte)']';
232
_bufBytes[
_bufPos
++] = (byte)'>';
241
_bufBytes[
_bufPos
++] = (byte)'<';
245
_bufBytes[
_bufPos
++] = (byte)':';
256
_bufBytes[
_bufPos
++] = (byte)'>';
274
_bufBytes[
_bufPos
++] = (byte)'<';
275
_bufBytes[
_bufPos
++] = (byte)'/';
280
_bufBytes[
_bufPos
++] = (byte)':';
283
_bufBytes[
_bufPos
++] = (byte)'>';
288
_bufPos
--;
289
_bufBytes[
_bufPos
++] = (byte)' ';
290
_bufBytes[
_bufPos
++] = (byte)'/';
291
_bufBytes[
_bufPos
++] = (byte)'>';
301
_bufBytes[
_bufPos
++] = (byte)'<';
302
_bufBytes[
_bufPos
++] = (byte)'/';
307
_bufBytes[
_bufPos
++] = (byte)':';
310
_bufBytes[
_bufPos
++] = (byte)'>';
321
_bufBytes[
_bufPos
++] = (byte)' ';
327
_bufBytes[
_bufPos
++] = (byte)':';
330
_bufBytes[
_bufPos
++] = (byte)'=';
331
_bufBytes[
_bufPos
++] = (byte)'"';
340
_bufBytes[
_bufPos
++] = (byte)'"';
368
_bufBytes[
_bufPos
++] = (byte)' ';
379
_bufBytes[
_bufPos
++] = (byte)'=';
380
_bufBytes[
_bufPos
++] = (byte)'"';
390
_bufBytes[
_bufPos
++] = (byte)'"';
404
_bufPos
-= 3;
409
_bufBytes[
_bufPos
++] = (byte)'<';
410
_bufBytes[
_bufPos
++] = (byte)'!';
411
_bufBytes[
_bufPos
++] = (byte)'[';
412
_bufBytes[
_bufPos
++] = (byte)'C';
413
_bufBytes[
_bufPos
++] = (byte)'D';
414
_bufBytes[
_bufPos
++] = (byte)'A';
415
_bufBytes[
_bufPos
++] = (byte)'T';
416
_bufBytes[
_bufPos
++] = (byte)'A';
417
_bufBytes[
_bufPos
++] = (byte)'[';
422
_bufBytes[
_bufPos
++] = (byte)']';
423
_bufBytes[
_bufPos
++] = (byte)']';
424
_bufBytes[
_bufPos
++] = (byte)'>';
435
_bufBytes[
_bufPos
++] = (byte)'<';
436
_bufBytes[
_bufPos
++] = (byte)'!';
437
_bufBytes[
_bufPos
++] = (byte)'-';
438
_bufBytes[
_bufPos
++] = (byte)'-';
442
_bufBytes[
_bufPos
++] = (byte)'-';
443
_bufBytes[
_bufPos
++] = (byte)'-';
444
_bufBytes[
_bufPos
++] = (byte)'>';
453
_bufBytes[
_bufPos
++] = (byte)'<';
454
_bufBytes[
_bufPos
++] = (byte)'?';
459
_bufBytes[
_bufPos
++] = (byte)' ';
463
_bufBytes[
_bufPos
++] = (byte)'?';
464
_bufBytes[
_bufPos
++] = (byte)'>';
472
_bufBytes[
_bufPos
++] = (byte)'&';
474
_bufBytes[
_bufPos
++] = (byte)';';
495
_bufBytes[
_bufPos
++] = (byte)'&';
496
_bufBytes[
_bufPos
++] = (byte)'#';
497
_bufBytes[
_bufPos
++] = (byte)'x';
499
_bufBytes[
_bufPos
++] = (byte)';';
554
_bufBytes[
_bufPos
++] = (byte)'&';
555
_bufBytes[
_bufPos
++] = (byte)'#';
556
_bufBytes[
_bufPos
++] = (byte)'x';
558
_bufBytes[
_bufPos
++] = (byte)';';
702
_bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
742
_bufPos
= (int)(pDst - pDstBegin);
826
_bufPos
= (int)(pDst - pDstBegin);
864
_bufPos
= (int)(pDst - pDstBegin);
945
_bufPos
= (int)(pDst - pDstBegin);
994
_bufPos
= (int)(pDst - pDstBegin);
1020
_bufPos
= (int)(pDst - pDstBegin);
1058
_bufPos
= (int)(pDst - pDstBegin);
1125
_bufPos
= (int)(pDst - pDstBegin);
1177
_bufPos
= (int)(pDst - pDstBegin);
1273
_bufPos
= (int)(pDst - pDstBegin);
1327
_bufPos
= (int)(pDst - pDstBegin);
1417
_bufPos
= (int)(pDst - pDstBegin);
1571
_bufPos
= (int)(pDst - pDstBegin);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (79)
126
_bufBytes[
_bufPos
++] = (byte)'"';
132
_bufBytes[
_bufPos
++] = (byte)'"';
136
_bufBytes[
_bufPos
++] = (byte)' ';
141
_bufBytes[
_bufPos
++] = (byte)'[';
143
_bufBytes[
_bufPos
++] = (byte)']';
146
_bufBytes[
_bufPos
++] = (byte)'>';
157
_bufBytes[
_bufPos
++] = (byte)'<';
185
_bufBytes[
_bufPos
++] = (byte)'<';
186
_bufBytes[
_bufPos
++] = (byte)'/';
200
_bufPos
--;
201
_bufBytes[
_bufPos
++] = (byte)' ';
202
_bufBytes[
_bufPos
++] = (byte)'/';
203
_bufBytes[
_bufPos
++] = (byte)'>';
215
_bufBytes[
_bufPos
++] = (byte)'<';
216
_bufBytes[
_bufPos
++] = (byte)'/';
237
_bufBytes[
_bufPos
++] = (byte)' ';
253
_bufBytes[
_bufPos
++] = (byte)'=';
254
_bufBytes[
_bufPos
++] = (byte)'"';
263
_bufBytes[
_bufPos
++] = (byte)'"';
287
_bufBytes[
_bufPos
++] = (byte)' ';
298
_bufBytes[
_bufPos
++] = (byte)'=';
299
_bufBytes[
_bufPos
++] = (byte)'"';
311
_bufBytes[
_bufPos
++] = (byte)'"';
328
_bufPos
-= 3;
333
_bufBytes[
_bufPos
++] = (byte)'<';
334
_bufBytes[
_bufPos
++] = (byte)'!';
335
_bufBytes[
_bufPos
++] = (byte)'[';
336
_bufBytes[
_bufPos
++] = (byte)'C';
337
_bufBytes[
_bufPos
++] = (byte)'D';
338
_bufBytes[
_bufPos
++] = (byte)'A';
339
_bufBytes[
_bufPos
++] = (byte)'T';
340
_bufBytes[
_bufPos
++] = (byte)'A';
341
_bufBytes[
_bufPos
++] = (byte)'[';
346
_bufBytes[
_bufPos
++] = (byte)']';
347
_bufBytes[
_bufPos
++] = (byte)']';
348
_bufBytes[
_bufPos
++] = (byte)'>';
360
_bufBytes[
_bufPos
++] = (byte)'<';
361
_bufBytes[
_bufPos
++] = (byte)'!';
362
_bufBytes[
_bufPos
++] = (byte)'-';
363
_bufBytes[
_bufPos
++] = (byte)'-';
367
_bufBytes[
_bufPos
++] = (byte)'-';
368
_bufBytes[
_bufPos
++] = (byte)'-';
369
_bufBytes[
_bufPos
++] = (byte)'>';
379
_bufBytes[
_bufPos
++] = (byte)'<';
380
_bufBytes[
_bufPos
++] = (byte)'?';
385
_bufBytes[
_bufPos
++] = (byte)' ';
389
_bufBytes[
_bufPos
++] = (byte)'?';
390
_bufBytes[
_bufPos
++] = (byte)'>';
399
_bufBytes[
_bufPos
++] = (byte)'&';
401
_bufBytes[
_bufPos
++] = (byte)';';
423
_bufBytes[
_bufPos
++] = (byte)'&';
424
_bufBytes[
_bufPos
++] = (byte)'#';
425
_bufBytes[
_bufPos
++] = (byte)'x';
427
_bufBytes[
_bufPos
++] = (byte)';';
478
_bufBytes[
_bufPos
++] = (byte)'&';
479
_bufBytes[
_bufPos
++] = (byte)'#';
480
_bufBytes[
_bufPos
++] = (byte)'x';
482
_bufBytes[
_bufPos
++] = (byte)';';
588
_bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
629
_bufPos
= (int)(pDst - pDstBegin);
711
_bufPos
= (int)(pDst - pDstBegin);
833
_bufPos
= (int)(pDst - pDstBegin);
858
_bufPos
= (int)(pDst - pDstBegin);
878
_bufPos
= (int)(pDst - pDstBegin);
915
_bufPos
= (int)(pDst - pDstBegin);
1072
_bufPos
= (int)(pDst - pDstBegin);
1096
_bufPos
= (int)(pDst - pDstBegin);
1247
_bufPos
= (int)(pDst - pDstBegin);
1270
_bufPos
= (int)(pDst - pDstBegin);
1283
_bufPos
= (int)(pDst - pDstBegin);
1316
_bufPos
= (int)(pDst - pDstBegin);
1448
_bufPos
= (int)(pDst - pDstBegin);
1494
_bufPos
= (int)(pDst - pDstBegin);
1507
_bufPos
= (int)(pDst - pDstBegin);
1546
_bufPos
= (int)(pDst - pDstBegin);
1637
_bufPos
= (int)(pDst - pDstBegin);
1675
_bufPos
= (int)(pDst - pDstBegin);
1688
_bufPos
= (int)(pDst - pDstBegin);
1729
_bufPos
= (int)(pDst - pDstBegin);
105 references to _bufPos
System.Private.Xml (105)
System\Xml\Core\HtmlUtf8RawTextWriter.cs (19)
101
base._attrEndPos =
_bufPos
;
118
_contentPos =
_bufPos
;
281
if (base._attrEndPos ==
_bufPos
)
320
base._attrEndPos =
_bufPos
;
333
base._attrEndPos =
_bufPos
;
350
if (base.
_bufPos
> base._bufLen)
525
byte* pDst = pDstBegin +
_bufPos
;
613
byte* pDst = pDstBegin +
_bufPos
;
783
_endBlockPos = base.
_bufPos
;
798
if (_endBlockPos == base.
_bufPos
&& (base._currentElementProperties & ElementProperties.BLOCK_WS) != 0)
810
if (_endBlockPos == base.
_bufPos
)
824
base._attrEndPos =
_bufPos
;
832
base._contentPos = base.
_bufPos
;
838
_endBlockPos = base.
_bufPos
;
843
_endBlockPos = base.
_bufPos
;
860
if (_endBlockPos == base.
_bufPos
&& base._contentPos != base.
_bufPos
)
875
_endBlockPos = base.
_bufPos
;
894
_endBlockPos = (_endBlockPos == base.
_bufPos
) ? 1 : 0;
System\Xml\Core\XmlUtf8RawTextWriter.cs (44)
250
_attrEndPos =
_bufPos
;
261
_contentPos =
_bufPos
;
271
if (_contentPos !=
_bufPos
)
319
if (_attrEndPos ==
_bufPos
)
342
_attrEndPos =
_bufPos
;
366
if (_attrEndPos ==
_bufPos
)
391
_attrEndPos =
_bufPos
;
400
if (_mergeCDataSections &&
_bufPos
== _cdataPos)
403
Debug.Assert(
_bufPos
>= 4);
426
_textPos =
_bufPos
;
427
_cdataPos =
_bufPos
;
476
if (
_bufPos
> _bufLen)
481
_textPos =
_bufPos
;
501
if (
_bufPos
> _bufLen)
506
_textPos =
_bufPos
;
559
_textPos =
_bufPos
;
598
_textPos =
_bufPos
;
612
_textPos =
_bufPos
;
670
if (
_bufPos
- 1 > 0)
673
_stream.Write(_bufBytes, 1,
_bufPos
- 1);
686
_bufBytes[0] = _bufBytes[
_bufPos
- 1];
692
_bufBytes[1] = _bufBytes[
_bufPos
];
693
_bufBytes[2] = _bufBytes[
_bufPos
+ 1];
694
_bufBytes[3] = _bufBytes[
_bufPos
+ 2];
698
_textPos = (_textPos ==
_bufPos
) ? 1 : 0;
699
_attrEndPos = (_attrEndPos ==
_bufPos
) ? 1 : 0;
713
byte* pDst = pDstBegin +
_bufPos
;
836
byte* pDst = pDstBegin +
_bufPos
;
946
_textPos =
_bufPos
;
965
byte* pDst = pDstBegin +
_bufPos
;
1029
byte* pDst = pDstBegin +
_bufPos
;
1133
if (
_bufPos
>= _bufLen)
1148
byte* pDst = pDstBegin +
_bufPos
;
1281
if (
_bufPos
>= _bufLen)
1298
byte* pDst = pDstBegin +
_bufPos
;
1574
return pDstBegin +
_bufPos
;
1811
if (!_mixedContent && base._textPos != base.
_bufPos
)
1823
if (!_mixedContent && base._textPos != base.
_bufPos
)
1860
if (!_mixedContent && base._contentPos != base.
_bufPos
)
1863
if (base._textPos != base.
_bufPos
)
1877
if (!_mixedContent && base._contentPos != base.
_bufPos
)
1880
if (base._textPos != base.
_bufPos
)
1922
if (!_mixedContent && base._textPos != base.
_bufPos
)
1932
if (!_mixedContent && base._textPos != base.
_bufPos
)
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (42)
171
_attrEndPos =
_bufPos
;
182
if (_contentPos !=
_bufPos
)
235
if (_attrEndPos ==
_bufPos
)
265
_attrEndPos =
_bufPos
;
285
if (_attrEndPos ==
_bufPos
)
312
_attrEndPos =
_bufPos
;
324
if (_mergeCDataSections &&
_bufPos
== _cdataPos)
327
Debug.Assert(
_bufPos
>= 4);
350
_textPos =
_bufPos
;
351
_cdataPos =
_bufPos
;
403
if (
_bufPos
> _bufLen)
408
_textPos =
_bufPos
;
429
if (
_bufPos
> _bufLen)
434
_textPos =
_bufPos
;
483
_textPos =
_bufPos
;
518
_textPos =
_bufPos
;
530
_textPos =
_bufPos
;
556
if (
_bufPos
- 1 > 0)
559
await _stream.WriteAsync(_bufBytes.AsMemory(1,
_bufPos
- 1)).ConfigureAwait(false);
572
_bufBytes[0] = _bufBytes[
_bufPos
- 1];
578
_bufBytes[1] = _bufBytes[
_bufPos
];
579
_bufBytes[2] = _bufBytes[
_bufPos
+ 1];
580
_bufBytes[3] = _bufBytes[
_bufPos
+ 2];
584
_textPos = (_textPos ==
_bufPos
) ? 1 : 0;
585
_attrEndPos = (_attrEndPos ==
_bufPos
) ? 1 : 0;
601
byte* pDst = pDstBegin +
_bufPos
;
804
byte* pDst = pDstBegin +
_bufPos
;
916
_textPos =
_bufPos
;
1043
byte* pDst = pDstBegin +
_bufPos
;
1218
byte* pDst = pDstBegin +
_bufPos
;
1419
byte* pDst = pDstBegin +
_bufPos
;
1557
if (
_bufPos
>= _bufLen)
1608
byte* pDst = pDstBegin +
_bufPos
;
1740
if (
_bufPos
>= _bufLen)
1777
if (!_mixedContent && base._textPos != base.
_bufPos
)
1790
if (!_mixedContent && base._textPos != base.
_bufPos
)
1805
if (!_mixedContent && base._contentPos != base.
_bufPos
)
1808
if (base._textPos != base.
_bufPos
)
1823
if (!_mixedContent && base._contentPos != base.
_bufPos
)
1826
if (base._textPos != base.
_bufPos
)
1872
if (!_mixedContent && base._textPos != base.
_bufPos
)
1883
if (!_mixedContent && base._textPos != base.
_bufPos
)