190 writes to bufPos
System.Xml (190)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (34)
127
bufChars[
bufPos
++] = (char) '"';
132
bufChars[
bufPos
++] = (char) '"';
135
bufChars[
bufPos
++] = (char) ' ';
139
bufChars[
bufPos
++] = (char) '[';
141
bufChars[
bufPos
++] = (char) ']';
144
bufChars[this.
bufPos
++] = (char) '>';
158
base.bufChars[
bufPos
++] = (char) '<';
172
base.bufChars[base.
bufPos
++] = (char) '>';
193
bufChars[base.
bufPos
++] = (char) '<';
194
bufChars[base.
bufPos
++] = (char) '/';
196
bufChars[base.
bufPos
++] = (char) '>';
214
bufChars[base.
bufPos
++] = (char) '<';
215
bufChars[base.
bufPos
++] = (char) '/';
217
bufChars[base.
bufPos
++] = (char) '>';
333
base.bufChars[
bufPos
++] = (char) ' ';
350
base.bufChars[
bufPos
++] = (char) '=';
351
base.bufChars[
bufPos
++] = (char) '"';
375
base.bufChars[
bufPos
++] = (char) '"';
387
bufChars[base.
bufPos
++] = (char) '<';
388
bufChars[base.
bufPos
++] = (char) '?';
390
bufChars[base.
bufPos
++] = (char) ' ';
394
base.bufChars[base.
bufPos
++] = (char) '>';
579
bufPos
= (int)(pDst - pDstBegin);
620
bufPos
= (int)(pDst - pDstBegin);
655
bufPos
= (int)(pDst - pDstBegin);
709
bufPos
= (int)(pDst - pDstBegin);
715
base.bufChars[
bufPos
++] = (char)'a';
716
base.bufChars[
bufPos
++] = (char)'m';
717
base.bufChars[
bufPos
++] = (char)'p';
718
base.bufChars[
bufPos
++] = (char)';';
817
base.bufChars[
bufPos
++] = (char) '<';
827
base.bufChars[base.
bufPos
++] = (char) '<';
830
base.bufChars[base.
bufPos
++] = (char) ':';
838
base.bufChars[base.
bufPos
++] = (char) '>';
System\Xml\Core\XmlEncodedRawTextWriter.cs (78)
274
bufChars[
bufPos
++] = (char) '"';
279
bufChars[
bufPos
++] = (char) '"';
282
bufChars[
bufPos
++] = (char) ' ';
286
bufChars[
bufPos
++] = (char) '[';
288
bufChars[
bufPos
++] = (char) ']';
291
bufChars[this.
bufPos
++] = (char) '>';
301
bufChars[
bufPos
++] = (char) '<';
304
bufChars[this.
bufPos
++] = (char) ':';
314
bufChars[
bufPos
++] = (char) '>';
332
bufChars[
bufPos
++] = (char) '<';
333
bufChars[
bufPos
++] = (char) '/';
337
bufChars[
bufPos
++] = (char) ':';
340
bufChars[
bufPos
++] = (char) '>';
344
bufPos
--;
345
bufChars[
bufPos
++] = (char) ' ';
346
bufChars[
bufPos
++] = (char) '/';
347
bufChars[
bufPos
++] = (char) '>';
358
bufChars[
bufPos
++] = (char) '<';
359
bufChars[
bufPos
++] = (char) '/';
363
bufChars[
bufPos
++] = (char) ':';
366
bufChars[
bufPos
++] = (char) '>';
377
bufChars[
bufPos
++] = (char) ' ';
382
bufChars[
bufPos
++] = (char) ':';
385
bufChars[
bufPos
++] = (char) '=';
386
bufChars[
bufPos
++] = (char) '"';
394
bufChars[
bufPos
++] = (char) '"';
428
bufChars[
bufPos
++] = (char)'=';
429
bufChars[
bufPos
++] = (char)'"';
440
bufChars[
bufPos
++] = (char)'"';
455
bufPos
-= 3;
459
bufChars[
bufPos
++] = (char) '<';
460
bufChars[
bufPos
++] = (char) '!';
461
bufChars[
bufPos
++] = (char) '[';
462
bufChars[
bufPos
++] = (char) 'C';
463
bufChars[
bufPos
++] = (char) 'D';
464
bufChars[
bufPos
++] = (char) 'A';
465
bufChars[
bufPos
++] = (char) 'T';
466
bufChars[
bufPos
++] = (char) 'A';
467
bufChars[
bufPos
++] = (char) '[';
472
bufChars[
bufPos
++] = (char) ']';
473
bufChars[
bufPos
++] = (char) ']';
474
bufChars[
bufPos
++] = (char) '>';
486
bufChars[
bufPos
++] = (char) '<';
487
bufChars[
bufPos
++] = (char) '!';
488
bufChars[
bufPos
++] = (char) '-';
489
bufChars[
bufPos
++] = (char) '-';
493
bufChars[
bufPos
++] = (char) '-';
494
bufChars[
bufPos
++] = (char) '-';
495
bufChars[
bufPos
++] = (char) '>';
505
bufChars[
bufPos
++] = (char) '<';
506
bufChars[
bufPos
++] = (char) '?';
510
bufChars[
bufPos
++] = (char) ' ';
514
bufChars[
bufPos
++] = (char) '?';
515
bufChars[
bufPos
++] = (char) '>';
524
bufChars[
bufPos
++] = (char) '&';
526
bufChars[
bufPos
++] = (char) ';';
546
bufChars[
bufPos
++] = (char)'&';
547
bufChars[
bufPos
++] = (char)'#';
548
bufChars[
bufPos
++] = (char)'x';
550
bufChars[
bufPos
++] = (char)';';
600
bufChars[
bufPos
++] = (char)'&';
601
bufChars[
bufPos
++] = (char)'#';
602
bufChars[
bufPos
++] = (char)'x';
604
bufChars[
bufPos
++] = (char)';';
769
bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
843
bufPos
= (int)(pDst - pDstBegin);
904
bufPos
= (int)(pDst - pDstBegin);
940
bufPos
= (int)(pDst - pDstBegin);
1002
bufPos
= (int)(pDst - pDstBegin);
1046
bufPos
= (int)(pDst - pDstBegin);
1056
bufPos
= (int)(pDst - pDstBegin);
1091
bufPos
= (int)(pDst - pDstBegin);
1139
bufPos
= (int)(pDst - pDstBegin);
1186
bufPos
= (int)(pDst - pDstBegin);
1259
bufPos
= (int)(pDst - pDstBegin);
1307
bufPos
= (int)(pDst - pDstBegin);
1375
bufPos
= (int)(pDst - pDstBegin);
1451
bufPos
= (int) (pDst - pDstBegin);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (78)
81
bufChars[
bufPos
++] = (char) '"';
86
bufChars[
bufPos
++] = (char) '"';
89
bufChars[
bufPos
++] = (char) ' ';
93
bufChars[
bufPos
++] = (char) '[';
95
bufChars[
bufPos
++] = (char) ']';
98
bufChars[this.
bufPos
++] = (char) '>';
109
bufChars[
bufPos
++] = (char) '<';
134
bufChars[
bufPos
++] = (char)'<';
135
bufChars[
bufPos
++] = (char)'/';
147
bufPos
--;
148
bufChars[
bufPos
++] = (char)' ';
149
bufChars[
bufPos
++] = (char)'/';
150
bufChars[
bufPos
++] = (char)'>';
163
bufChars[
bufPos
++] = (char) '<';
164
bufChars[
bufPos
++] = (char) '/';
183
bufChars[
bufPos
++] = (char) ' ';
196
bufChars[
bufPos
++] = (char)'=';
197
bufChars[
bufPos
++] = (char)'"';
205
bufChars[
bufPos
++] = (char) '"';
242
bufChars[
bufPos
++] = (char)'=';
243
bufChars[
bufPos
++] = (char)'"';
255
bufChars[
bufPos
++] = (char)'"';
273
bufPos
-= 3;
277
bufChars[
bufPos
++] = (char) '<';
278
bufChars[
bufPos
++] = (char) '!';
279
bufChars[
bufPos
++] = (char) '[';
280
bufChars[
bufPos
++] = (char) 'C';
281
bufChars[
bufPos
++] = (char) 'D';
282
bufChars[
bufPos
++] = (char) 'A';
283
bufChars[
bufPos
++] = (char) 'T';
284
bufChars[
bufPos
++] = (char) 'A';
285
bufChars[
bufPos
++] = (char) '[';
290
bufChars[
bufPos
++] = (char) ']';
291
bufChars[
bufPos
++] = (char) ']';
292
bufChars[
bufPos
++] = (char) '>';
305
bufChars[
bufPos
++] = (char) '<';
306
bufChars[
bufPos
++] = (char) '!';
307
bufChars[
bufPos
++] = (char) '-';
308
bufChars[
bufPos
++] = (char) '-';
312
bufChars[
bufPos
++] = (char) '-';
313
bufChars[
bufPos
++] = (char) '-';
314
bufChars[
bufPos
++] = (char) '>';
325
bufChars[
bufPos
++] = (char) '<';
326
bufChars[
bufPos
++] = (char) '?';
330
bufChars[
bufPos
++] = (char) ' ';
334
bufChars[
bufPos
++] = (char) '?';
335
bufChars[
bufPos
++] = (char) '>';
345
bufChars[
bufPos
++] = (char) '&';
347
bufChars[
bufPos
++] = (char) ';';
368
bufChars[
bufPos
++] = (char)'&';
369
bufChars[
bufPos
++] = (char)'#';
370
bufChars[
bufPos
++] = (char)'x';
372
bufChars[
bufPos
++] = (char)';';
419
bufChars[
bufPos
++] = (char)'&';
420
bufChars[
bufPos
++] = (char)'#';
421
bufChars[
bufPos
++] = (char)'x';
423
bufChars[
bufPos
++] = (char)';';
541
bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
618
bufPos
= (int)(pDst - pDstBegin);
677
bufPos
= (int)(pDst - pDstBegin);
788
bufPos
= (int)(pDst - pDstBegin);
813
bufPos
= (int)(pDst - pDstBegin);
831
bufPos
= (int)(pDst - pDstBegin);
851
bufPos
= (int)(pDst - pDstBegin);
992
bufPos
= (int)(pDst - pDstBegin);
1000
bufPos
= (int)(pDst - pDstBegin);
1081
bufPos
= (int)(pDst - pDstBegin);
1102
bufPos
= (int)(pDst - pDstBegin);
1115
bufPos
= (int)(pDst - pDstBegin);
1131
bufPos
= (int)(pDst - pDstBegin);
1254
bufPos
= (int)(pDst - pDstBegin);
1294
bufPos
= (int)(pDst - pDstBegin);
1307
bufPos
= (int)(pDst - pDstBegin);
1329
bufPos
= (int)(pDst - pDstBegin);
1414
bufPos
= (int)(pDst - pDstBegin);
1447
bufPos
= (int)(pDst - pDstBegin);
1460
bufPos
= (int)(pDst - pDstBegin);
1484
bufPos
= (int)(pDst - pDstBegin);
100 references to bufPos
System.Xml (100)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (19)
160
base.attrEndPos =
bufPos
;
175
this.contentPos = this.
bufPos
;
332
if ( base.attrEndPos ==
bufPos
) {
365
base.attrEndPos =
bufPos
;
378
base.attrEndPos =
bufPos
;
396
if ( base.
bufPos
> base.bufLen ) {
553
char * pDst = pDstBegin + this.
bufPos
;
633
char * pDst = pDstBegin + this.
bufPos
;
797
endBlockPos = base.
bufPos
;
812
if ( endBlockPos == base.
bufPos
&& ( base.currentElementProperties & ElementProperties.BLOCK_WS ) != 0 ) {
822
if ( endBlockPos == base.
bufPos
) {
834
base.attrEndPos =
bufPos
;
841
base.contentPos = base.
bufPos
;
846
endBlockPos = base.
bufPos
;
850
endBlockPos = base.
bufPos
;
865
if ( endBlockPos == base.
bufPos
&& base.contentPos != base.
bufPos
) {
878
endBlockPos = base.
bufPos
;
894
endBlockPos = ( endBlockPos == base.
bufPos
) ? 1 : 0;
System\Xml\Core\XmlEncodedRawTextWriter.cs (42)
309
attrEndPos =
bufPos
;
319
contentPos =
bufPos
;
330
if ( contentPos !=
bufPos
) {
376
if ( attrEndPos ==
bufPos
) {
396
attrEndPos =
bufPos
;
441
attrEndPos =
bufPos
;
452
if ( mergeCDataSections &&
bufPos
== cdataPos ) {
454
Debug.Assert(
bufPos
>= 4 );
476
textPos =
bufPos
;
477
cdataPos =
bufPos
;
528
if (
bufPos
> bufLen ) {
532
textPos =
bufPos
;
552
if (
bufPos
> bufLen ) {
556
textPos =
bufPos
;
605
textPos =
bufPos
;
643
textPos =
bufPos
;
657
textPos =
bufPos
;
746
EncodeChars( 1,
bufPos
, true );
750
writer.Write( bufChars, 1,
bufPos
- 1 );
762
bufChars[0] = bufChars[
bufPos
- 1];
765
textPos = (textPos ==
bufPos
) ? 1 : 0;
766
attrEndPos = (attrEndPos ==
bufPos
) ? 1 : 0;
798
Debug.Assert(
bufPos
== 1 );
818
char * pDst = pDstBegin + this.
bufPos
;
915
char * pDst = pDstBegin + this.
bufPos
;
1003
textPos =
bufPos
;
1020
char * pDst = pDstBegin + this.
bufPos
;
1065
char * pDst = pDstBegin +
bufPos
;
1147
if (
bufPos
>= bufLen ) {
1160
char * pDst = pDstBegin +
bufPos
;
1266
if (
bufPos
>= bufLen ) {
1281
char * pDst = pDstBegin +
bufPos
;
1437
textContentMarks[++lastMarkPos] = this.
bufPos
;
1454
return pDstBegin +
bufPos
;
1672
if ( !mixedContent && base.textPos != base.
bufPos
) {
1682
if ( !mixedContent && base.textPos != base.
bufPos
) {
1713
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1715
if ( base.textPos != base.
bufPos
) {
1727
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1729
if ( base.textPos != base.
bufPos
) {
1754
if ( !mixedContent && base.textPos != base.
bufPos
) {
1762
if ( !mixedContent && base.textPos != base.
bufPos
) {
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (39)
120
attrEndPos =
bufPos
;
132
if (contentPos !=
bufPos
) {
182
if ( attrEndPos ==
bufPos
) {
207
attrEndPos =
bufPos
;
256
attrEndPos =
bufPos
;
270
if ( mergeCDataSections &&
bufPos
== cdataPos ) {
272
Debug.Assert(
bufPos
>= 4 );
294
textPos =
bufPos
;
295
cdataPos =
bufPos
;
349
if (
bufPos
> bufLen ) {
353
textPos =
bufPos
;
374
if (
bufPos
> bufLen ) {
378
textPos =
bufPos
;
424
textPos =
bufPos
;
460
textPos =
bufPos
;
473
textPos =
bufPos
;
518
await EncodeCharsAsync( 1,
bufPos
, true ).ConfigureAwait(false);
522
await writer.WriteAsync( bufChars, 1,
bufPos
- 1 ).ConfigureAwait(false);
534
bufChars[0] = bufChars[
bufPos
- 1];
537
textPos = (textPos ==
bufPos
) ? 1 : 0;
538
attrEndPos = (attrEndPos ==
bufPos
) ? 1 : 0;
570
Debug.Assert(
bufPos
== 1 );
593
char * pDst = pDstBegin + this.
bufPos
;
763
char * pDst = pDstBegin + this.
bufPos
;
852
textPos =
bufPos
;
966
char * pDst = pDstBegin + this.
bufPos
;
1055
char * pDst = pDstBegin +
bufPos
;
1228
char * pDst = pDstBegin +
bufPos
;
1340
if (
bufPos
>= bufLen ) {
1388
char * pDst = pDstBegin +
bufPos
;
1495
if (
bufPos
>= bufLen ) {
1530
if ( !mixedContent && base.textPos != base.
bufPos
) {
1541
if ( !mixedContent && base.textPos != base.
bufPos
) {
1554
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1556
if ( base.textPos != base.
bufPos
) {
1569
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1571
if ( base.textPos != base.
bufPos
) {
1599
if ( !mixedContent && base.textPos != base.
bufPos
) {
1608
if ( !mixedContent && base.textPos != base.
bufPos
) {