192 writes to _bufPos
System.Private.Xml (192)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (34)
71
_bufChars[
_bufPos
++] = (char)'"';
77
_bufChars[
_bufPos
++] = (char)'"';
81
_bufChars[
_bufPos
++] = (char)' ';
86
_bufChars[
_bufPos
++] = (char)'[';
88
_bufChars[
_bufPos
++] = (char)']';
91
_bufChars[
_bufPos
++] = (char)'>';
108
base._bufChars[
_bufPos
++] = (char)'<';
124
base._bufChars[base.
_bufPos
++] = (char)'>';
149
_bufChars[base.
_bufPos
++] = (char)'<';
150
_bufChars[base.
_bufPos
++] = (char)'/';
152
_bufChars[base.
_bufPos
++] = (char)'>';
174
_bufChars[base.
_bufPos
++] = (char)'<';
175
_bufChars[base.
_bufPos
++] = (char)'/';
177
_bufChars[base.
_bufPos
++] = (char)'>';
298
base._bufChars[
_bufPos
++] = (char)' ';
318
base._bufChars[
_bufPos
++] = (char)'=';
319
base._bufChars[
_bufPos
++] = (char)'"';
347
base._bufChars[
_bufPos
++] = (char)'"';
360
_bufChars[base.
_bufPos
++] = (char)'<';
361
_bufChars[base.
_bufPos
++] = (char)'?';
363
_bufChars[base.
_bufPos
++] = (char)' ';
367
base._bufChars[base.
_bufPos
++] = (char)'>';
575
_bufPos
= (int)(pDst - pDstBegin);
619
_bufPos
= (int)(pDst - pDstBegin);
663
_bufPos
= (int)(pDst - pDstBegin);
722
_bufPos
= (int)(pDst - pDstBegin);
729
base._bufChars[
_bufPos
++] = (char)'a';
730
base._bufChars[
_bufPos
++] = (char)'m';
731
base._bufChars[
_bufPos
++] = (char)'p';
732
base._bufChars[
_bufPos
++] = (char)';';
834
base._bufChars[
_bufPos
++] = (char)'<';
846
base._bufChars[base.
_bufPos
++] = (char)'<';
850
base._bufChars[base.
_bufPos
++] = (char)':';
859
base._bufChars[base.
_bufPos
++] = (char)'>';
System\Xml\Core\XmlEncodedRawTextWriter.cs (79)
268
_bufChars[
_bufPos
++] = (char)'"';
274
_bufChars[
_bufPos
++] = (char)'"';
278
_bufChars[
_bufPos
++] = (char)' ';
283
_bufChars[
_bufPos
++] = (char)'[';
285
_bufChars[
_bufPos
++] = (char)']';
288
_bufChars[
_bufPos
++] = (char)'>';
299
_bufChars[
_bufPos
++] = (char)'<';
303
_bufChars[
_bufPos
++] = (char)':';
314
_bufChars[
_bufPos
++] = (char)'>';
334
_bufChars[
_bufPos
++] = (char)'<';
335
_bufChars[
_bufPos
++] = (char)'/';
340
_bufChars[
_bufPos
++] = (char)':';
343
_bufChars[
_bufPos
++] = (char)'>';
348
_bufPos
--;
349
_bufChars[
_bufPos
++] = (char)' ';
350
_bufChars[
_bufPos
++] = (char)'/';
351
_bufChars[
_bufPos
++] = (char)'>';
363
_bufChars[
_bufPos
++] = (char)'<';
364
_bufChars[
_bufPos
++] = (char)'/';
369
_bufChars[
_bufPos
++] = (char)':';
372
_bufChars[
_bufPos
++] = (char)'>';
385
_bufChars[
_bufPos
++] = (char)' ';
391
_bufChars[
_bufPos
++] = (char)':';
394
_bufChars[
_bufPos
++] = (char)'=';
395
_bufChars[
_bufPos
++] = (char)'"';
405
_bufChars[
_bufPos
++] = (char)'"';
435
_bufChars[
_bufPos
++] = (char)' ';
446
_bufChars[
_bufPos
++] = (char)'=';
447
_bufChars[
_bufPos
++] = (char)'"';
460
_bufChars[
_bufPos
++] = (char)'"';
476
_bufPos
-= 3;
481
_bufChars[
_bufPos
++] = (char)'<';
482
_bufChars[
_bufPos
++] = (char)'!';
483
_bufChars[
_bufPos
++] = (char)'[';
484
_bufChars[
_bufPos
++] = (char)'C';
485
_bufChars[
_bufPos
++] = (char)'D';
486
_bufChars[
_bufPos
++] = (char)'A';
487
_bufChars[
_bufPos
++] = (char)'T';
488
_bufChars[
_bufPos
++] = (char)'A';
489
_bufChars[
_bufPos
++] = (char)'[';
494
_bufChars[
_bufPos
++] = (char)']';
495
_bufChars[
_bufPos
++] = (char)']';
496
_bufChars[
_bufPos
++] = (char)'>';
509
_bufChars[
_bufPos
++] = (char)'<';
510
_bufChars[
_bufPos
++] = (char)'!';
511
_bufChars[
_bufPos
++] = (char)'-';
512
_bufChars[
_bufPos
++] = (char)'-';
516
_bufChars[
_bufPos
++] = (char)'-';
517
_bufChars[
_bufPos
++] = (char)'-';
518
_bufChars[
_bufPos
++] = (char)'>';
529
_bufChars[
_bufPos
++] = (char)'<';
530
_bufChars[
_bufPos
++] = (char)'?';
535
_bufChars[
_bufPos
++] = (char)' ';
539
_bufChars[
_bufPos
++] = (char)'?';
540
_bufChars[
_bufPos
++] = (char)'>';
550
_bufChars[
_bufPos
++] = (char)'&';
552
_bufChars[
_bufPos
++] = (char)';';
575
_bufChars[
_bufPos
++] = (char)'&';
576
_bufChars[
_bufPos
++] = (char)'#';
577
_bufChars[
_bufPos
++] = (char)'x';
579
_bufChars[
_bufPos
++] = (char)';';
639
_bufChars[
_bufPos
++] = (char)'&';
640
_bufChars[
_bufPos
++] = (char)'#';
641
_bufChars[
_bufPos
++] = (char)'x';
643
_bufChars[
_bufPos
++] = (char)';';
841
_bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
923
_bufPos
= (int)(pDst - pDstBegin);
1008
_bufPos
= (int)(pDst - pDstBegin);
1046
_bufPos
= (int)(pDst - pDstBegin);
1128
_bufPos
= (int)(pDst - pDstBegin);
1177
_bufPos
= (int)(pDst - pDstBegin);
1204
_bufPos
= (int)(pDst - pDstBegin);
1242
_bufPos
= (int)(pDst - pDstBegin);
1310
_bufPos
= (int)(pDst - pDstBegin);
1362
_bufPos
= (int)(pDst - pDstBegin);
1459
_bufPos
= (int)(pDst - pDstBegin);
1513
_bufPos
= (int)(pDst - pDstBegin);
1604
_bufPos
= (int)(pDst - pDstBegin);
1709
_bufPos
= (int)(pDst - pDstBegin);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (79)
150
_bufChars[
_bufPos
++] = (char)'"';
156
_bufChars[
_bufPos
++] = (char)'"';
160
_bufChars[
_bufPos
++] = (char)' ';
165
_bufChars[
_bufPos
++] = (char)'[';
167
_bufChars[
_bufPos
++] = (char)']';
170
_bufChars[
_bufPos
++] = (char)'>';
183
_bufChars[
_bufPos
++] = (char)'<';
213
_bufChars[
_bufPos
++] = (char)'<';
214
_bufChars[
_bufPos
++] = (char)'/';
228
_bufPos
--;
229
_bufChars[
_bufPos
++] = (char)' ';
230
_bufChars[
_bufPos
++] = (char)'/';
231
_bufChars[
_bufPos
++] = (char)'>';
245
_bufChars[
_bufPos
++] = (char)'<';
246
_bufChars[
_bufPos
++] = (char)'/';
269
_bufChars[
_bufPos
++] = (char)' ';
285
_bufChars[
_bufPos
++] = (char)'=';
286
_bufChars[
_bufPos
++] = (char)'"';
297
_bufChars[
_bufPos
++] = (char)'"';
323
_bufChars[
_bufPos
++] = (char)' ';
334
_bufChars[
_bufPos
++] = (char)'=';
335
_bufChars[
_bufPos
++] = (char)'"';
351
_bufChars[
_bufPos
++] = (char)'"';
370
_bufPos
-= 3;
375
_bufChars[
_bufPos
++] = (char)'<';
376
_bufChars[
_bufPos
++] = (char)'!';
377
_bufChars[
_bufPos
++] = (char)'[';
378
_bufChars[
_bufPos
++] = (char)'C';
379
_bufChars[
_bufPos
++] = (char)'D';
380
_bufChars[
_bufPos
++] = (char)'A';
381
_bufChars[
_bufPos
++] = (char)'T';
382
_bufChars[
_bufPos
++] = (char)'A';
383
_bufChars[
_bufPos
++] = (char)'[';
388
_bufChars[
_bufPos
++] = (char)']';
389
_bufChars[
_bufPos
++] = (char)']';
390
_bufChars[
_bufPos
++] = (char)'>';
404
_bufChars[
_bufPos
++] = (char)'<';
405
_bufChars[
_bufPos
++] = (char)'!';
406
_bufChars[
_bufPos
++] = (char)'-';
407
_bufChars[
_bufPos
++] = (char)'-';
411
_bufChars[
_bufPos
++] = (char)'-';
412
_bufChars[
_bufPos
++] = (char)'-';
413
_bufChars[
_bufPos
++] = (char)'>';
425
_bufChars[
_bufPos
++] = (char)'<';
426
_bufChars[
_bufPos
++] = (char)'?';
431
_bufChars[
_bufPos
++] = (char)' ';
435
_bufChars[
_bufPos
++] = (char)'?';
436
_bufChars[
_bufPos
++] = (char)'>';
447
_bufChars[
_bufPos
++] = (char)'&';
449
_bufChars[
_bufPos
++] = (char)';';
473
_bufChars[
_bufPos
++] = (char)'&';
474
_bufChars[
_bufPos
++] = (char)'#';
475
_bufChars[
_bufPos
++] = (char)'x';
477
_bufChars[
_bufPos
++] = (char)';';
534
_bufChars[
_bufPos
++] = (char)'&';
535
_bufChars[
_bufPos
++] = (char)'#';
536
_bufChars[
_bufPos
++] = (char)'x';
538
_bufChars[
_bufPos
++] = (char)';';
673
_bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
758
_bufPos
= (int)(pDst - pDstBegin);
841
_bufPos
= (int)(pDst - pDstBegin);
963
_bufPos
= (int)(pDst - pDstBegin);
988
_bufPos
= (int)(pDst - pDstBegin);
1008
_bufPos
= (int)(pDst - pDstBegin);
1046
_bufPos
= (int)(pDst - pDstBegin);
1203
_bufPos
= (int)(pDst - pDstBegin);
1228
_bufPos
= (int)(pDst - pDstBegin);
1379
_bufPos
= (int)(pDst - pDstBegin);
1402
_bufPos
= (int)(pDst - pDstBegin);
1415
_bufPos
= (int)(pDst - pDstBegin);
1449
_bufPos
= (int)(pDst - pDstBegin);
1581
_bufPos
= (int)(pDst - pDstBegin);
1627
_bufPos
= (int)(pDst - pDstBegin);
1640
_bufPos
= (int)(pDst - pDstBegin);
1680
_bufPos
= (int)(pDst - pDstBegin);
1771
_bufPos
= (int)(pDst - pDstBegin);
1809
_bufPos
= (int)(pDst - pDstBegin);
1822
_bufPos
= (int)(pDst - pDstBegin);
1864
_bufPos
= (int)(pDst - pDstBegin);
104 references to _bufPos
System.Private.Xml (104)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (19)
110
base._attrEndPos =
_bufPos
;
127
_contentPos =
_bufPos
;
296
if (base._attrEndPos ==
_bufPos
)
335
base._attrEndPos =
_bufPos
;
350
base._attrEndPos =
_bufPos
;
369
if (base.
_bufPos
> base._bufLen)
548
char* pDst = pDstBegin +
_bufPos
;
636
char* pDst = pDstBegin +
_bufPos
;
811
_endBlockPos = base.
_bufPos
;
828
if (_endBlockPos == base.
_bufPos
&& (base._currentElementProperties & ElementProperties.BLOCK_WS) != 0)
840
if (_endBlockPos == base.
_bufPos
)
854
base._attrEndPos =
_bufPos
;
862
base._contentPos = base.
_bufPos
;
868
_endBlockPos = base.
_bufPos
;
873
_endBlockPos = base.
_bufPos
;
890
if (_endBlockPos == base.
_bufPos
&& base._contentPos != base.
_bufPos
)
905
_endBlockPos = base.
_bufPos
;
924
_endBlockPos = (_endBlockPos == base.
_bufPos
) ? 1 : 0;
System\Xml\Core\XmlEncodedRawTextWriter.cs (44)
308
_attrEndPos =
_bufPos
;
319
_contentPos =
_bufPos
;
331
if (_contentPos !=
_bufPos
)
383
if (_attrEndPos ==
_bufPos
)
407
_attrEndPos =
_bufPos
;
433
if (_attrEndPos ==
_bufPos
)
461
_attrEndPos =
_bufPos
;
472
if (_mergeCDataSections &&
_bufPos
== _cdataPos)
475
Debug.Assert(
_bufPos
>= 4);
498
_textPos =
_bufPos
;
499
_cdataPos =
_bufPos
;
554
if (
_bufPos
> _bufLen)
559
_textPos =
_bufPos
;
581
if (
_bufPos
> _bufLen)
586
_textPos =
_bufPos
;
644
_textPos =
_bufPos
;
687
_textPos =
_bufPos
;
703
_textPos =
_bufPos
;
813
EncodeChars(1,
_bufPos
, true);
817
if (
_bufPos
- 1 > 0)
820
_writer!.Write(_bufChars, 1,
_bufPos
- 1);
834
_bufChars[0] = _bufChars[
_bufPos
- 1];
837
_textPos = (_textPos ==
_bufPos
) ? 1 : 0;
838
_attrEndPos = (_attrEndPos ==
_bufPos
) ? 1 : 0;
875
Debug.Assert(
_bufPos
== 1);
894
char* pDst = pDstBegin +
_bufPos
;
1018
char* pDst = pDstBegin +
_bufPos
;
1129
_textPos =
_bufPos
;
1148
char* pDst = pDstBegin +
_bufPos
;
1213
char* pDst = pDstBegin +
_bufPos
;
1318
if (
_bufPos
>= _bufLen)
1333
char* pDst = pDstBegin +
_bufPos
;
1467
if (
_bufPos
>= _bufLen)
1484
char* pDst = pDstBegin +
_bufPos
;
1693
_textContentMarks[++_lastMarkPos] =
_bufPos
;
1712
return pDstBegin +
_bufPos
;
1954
if (!_mixedContent && base._textPos != base.
_bufPos
)
1966
if (!_mixedContent && base._textPos != base.
_bufPos
)
2003
if (!_mixedContent && base._contentPos != base.
_bufPos
)
2006
if (base._textPos != base.
_bufPos
)
2020
if (!_mixedContent && base._contentPos != base.
_bufPos
)
2023
if (base._textPos != base.
_bufPos
)
2065
if (!_mixedContent && base._textPos != base.
_bufPos
)
2075
if (!_mixedContent && base._textPos != base.
_bufPos
)
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (41)
197
_attrEndPos =
_bufPos
;
210
if (_contentPos !=
_bufPos
)
267
if (_attrEndPos ==
_bufPos
)
299
_attrEndPos =
_bufPos
;
321
if (_attrEndPos ==
_bufPos
)
352
_attrEndPos =
_bufPos
;
366
if (_mergeCDataSections &&
_bufPos
== _cdataPos)
369
Debug.Assert(
_bufPos
>= 4);
392
_textPos =
_bufPos
;
393
_cdataPos =
_bufPos
;
451
if (
_bufPos
> _bufLen)
456
_textPos =
_bufPos
;
479
if (
_bufPos
> _bufLen)
484
_textPos =
_bufPos
;
539
_textPos =
_bufPos
;
578
_textPos =
_bufPos
;
592
_textPos =
_bufPos
;
645
await EncodeCharsAsync(1,
_bufPos
, true).ConfigureAwait(false);
649
if (
_bufPos
- 1 > 0)
652
await _writer!.WriteAsync(_bufChars.AsMemory(1,
_bufPos
- 1)).ConfigureAwait(false);
666
_bufChars[0] = _bufChars[
_bufPos
- 1];
669
_textPos = (_textPos ==
_bufPos
) ? 1 : 0;
670
_attrEndPos = (_attrEndPos ==
_bufPos
) ? 1 : 0;
707
Debug.Assert(
_bufPos
== 1);
730
char* pDst = pDstBegin +
_bufPos
;
934
char* pDst = pDstBegin +
_bufPos
;
1047
_textPos =
_bufPos
;
1174
char* pDst = pDstBegin +
_bufPos
;
1350
char* pDst = pDstBegin +
_bufPos
;
1552
char* pDst = pDstBegin +
_bufPos
;
1691
if (
_bufPos
>= _bufLen)
1742
char* pDst = pDstBegin +
_bufPos
;
1875
if (
_bufPos
>= _bufLen)
1912
if (!_mixedContent && base._textPos != base.
_bufPos
)
1925
if (!_mixedContent && base._textPos != base.
_bufPos
)
1940
if (!_mixedContent && base._contentPos != base.
_bufPos
)
1943
if (base._textPos != base.
_bufPos
)
1958
if (!_mixedContent && base._contentPos != base.
_bufPos
)
1961
if (base._textPos != base.
_bufPos
)
2007
if (!_mixedContent && base._textPos != base.
_bufPos
)
2018
if (!_mixedContent && base._textPos != base.
_bufPos
)