189 writes to bufPos
System.Xml (189)
System\Xml\Core\HtmlUtf8RawTextWriter.cs (34)
127
bufBytes[
bufPos
++] = (byte) '"';
132
bufBytes[
bufPos
++] = (byte) '"';
135
bufBytes[
bufPos
++] = (byte) ' ';
139
bufBytes[
bufPos
++] = (byte) '[';
141
bufBytes[
bufPos
++] = (byte) ']';
144
bufBytes[this.
bufPos
++] = (byte) '>';
158
base.bufBytes[
bufPos
++] = (byte) '<';
172
base.bufBytes[base.
bufPos
++] = (byte) '>';
193
bufBytes[base.
bufPos
++] = (byte) '<';
194
bufBytes[base.
bufPos
++] = (byte) '/';
196
bufBytes[base.
bufPos
++] = (byte) '>';
214
bufBytes[base.
bufPos
++] = (byte) '<';
215
bufBytes[base.
bufPos
++] = (byte) '/';
217
bufBytes[base.
bufPos
++] = (byte) '>';
333
base.bufBytes[
bufPos
++] = (byte) ' ';
350
base.bufBytes[
bufPos
++] = (byte) '=';
351
base.bufBytes[
bufPos
++] = (byte) '"';
375
base.bufBytes[
bufPos
++] = (byte) '"';
387
bufBytes[base.
bufPos
++] = (byte) '<';
388
bufBytes[base.
bufPos
++] = (byte) '?';
390
bufBytes[base.
bufPos
++] = (byte) ' ';
394
base.bufBytes[base.
bufPos
++] = (byte) '>';
579
bufPos
= (int)(pDst - pDstBegin);
620
bufPos
= (int)(pDst - pDstBegin);
655
bufPos
= (int)(pDst - pDstBegin);
709
bufPos
= (int)(pDst - pDstBegin);
715
base.bufBytes[
bufPos
++] = (byte)'a';
716
base.bufBytes[
bufPos
++] = (byte)'m';
717
base.bufBytes[
bufPos
++] = (byte)'p';
718
base.bufBytes[
bufPos
++] = (byte)';';
817
base.bufBytes[
bufPos
++] = (byte) '<';
827
base.bufBytes[base.
bufPos
++] = (byte) '<';
830
base.bufBytes[base.
bufPos
++] = (byte) ':';
838
base.bufBytes[base.
bufPos
++] = (byte) '>';
System\Xml\Core\XmlUtf8RawTextWriter.cs (79)
139
bufPos
+= bom.Length;
228
bufBytes[
bufPos
++] = (byte) '"';
233
bufBytes[
bufPos
++] = (byte) '"';
236
bufBytes[
bufPos
++] = (byte) ' ';
240
bufBytes[
bufPos
++] = (byte) '[';
242
bufBytes[
bufPos
++] = (byte) ']';
245
bufBytes[this.
bufPos
++] = (byte) '>';
253
bufBytes[
bufPos
++] = (byte) '<';
256
bufBytes[this.
bufPos
++] = (byte) ':';
266
bufBytes[
bufPos
++] = (byte) '>';
282
bufBytes[
bufPos
++] = (byte) '<';
283
bufBytes[
bufPos
++] = (byte) '/';
287
bufBytes[
bufPos
++] = (byte) ':';
290
bufBytes[
bufPos
++] = (byte) '>';
294
bufPos
--;
295
bufBytes[
bufPos
++] = (byte) ' ';
296
bufBytes[
bufPos
++] = (byte) '/';
297
bufBytes[
bufPos
++] = (byte) '>';
306
bufBytes[
bufPos
++] = (byte) '<';
307
bufBytes[
bufPos
++] = (byte) '/';
311
bufBytes[
bufPos
++] = (byte) ':';
314
bufBytes[
bufPos
++] = (byte) '>';
323
bufBytes[
bufPos
++] = (byte) ' ';
328
bufBytes[
bufPos
++] = (byte) ':';
331
bufBytes[
bufPos
++] = (byte) '=';
332
bufBytes[
bufPos
++] = (byte) '"';
340
bufBytes[
bufPos
++] = (byte) '"';
372
bufBytes[
bufPos
++] = (byte)'=';
373
bufBytes[
bufPos
++] = (byte)'"';
384
bufBytes[
bufPos
++] = (byte)'"';
397
bufPos
-= 3;
401
bufBytes[
bufPos
++] = (byte) '<';
402
bufBytes[
bufPos
++] = (byte) '!';
403
bufBytes[
bufPos
++] = (byte) '[';
404
bufBytes[
bufPos
++] = (byte) 'C';
405
bufBytes[
bufPos
++] = (byte) 'D';
406
bufBytes[
bufPos
++] = (byte) 'A';
407
bufBytes[
bufPos
++] = (byte) 'T';
408
bufBytes[
bufPos
++] = (byte) 'A';
409
bufBytes[
bufPos
++] = (byte) '[';
414
bufBytes[
bufPos
++] = (byte) ']';
415
bufBytes[
bufPos
++] = (byte) ']';
416
bufBytes[
bufPos
++] = (byte) '>';
426
bufBytes[
bufPos
++] = (byte) '<';
427
bufBytes[
bufPos
++] = (byte) '!';
428
bufBytes[
bufPos
++] = (byte) '-';
429
bufBytes[
bufPos
++] = (byte) '-';
433
bufBytes[
bufPos
++] = (byte) '-';
434
bufBytes[
bufPos
++] = (byte) '-';
435
bufBytes[
bufPos
++] = (byte) '>';
443
bufBytes[
bufPos
++] = (byte) '<';
444
bufBytes[
bufPos
++] = (byte) '?';
448
bufBytes[
bufPos
++] = (byte) ' ';
452
bufBytes[
bufPos
++] = (byte) '?';
453
bufBytes[
bufPos
++] = (byte) '>';
460
bufBytes[
bufPos
++] = (byte) '&';
462
bufBytes[
bufPos
++] = (byte) ';';
480
bufBytes[
bufPos
++] = (byte)'&';
481
bufBytes[
bufPos
++] = (byte)'#';
482
bufBytes[
bufPos
++] = (byte)'x';
484
bufBytes[
bufPos
++] = (byte)';';
532
bufBytes[
bufPos
++] = (byte)'&';
533
bufBytes[
bufPos
++] = (byte)'#';
534
bufBytes[
bufPos
++] = (byte)'x';
536
bufBytes[
bufPos
++] = (byte)';';
662
bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
703
bufPos
= (int)(pDst - pDstBegin);
764
bufPos
= (int)(pDst - pDstBegin);
800
bufPos
= (int)(pDst - pDstBegin);
862
bufPos
= (int)(pDst - pDstBegin);
906
bufPos
= (int)(pDst - pDstBegin);
916
bufPos
= (int)(pDst - pDstBegin);
951
bufPos
= (int)(pDst - pDstBegin);
999
bufPos
= (int)(pDst - pDstBegin);
1046
bufPos
= (int)(pDst - pDstBegin);
1119
bufPos
= (int)(pDst - pDstBegin);
1167
bufPos
= (int)(pDst - pDstBegin);
1235
bufPos
= (int)(pDst - pDstBegin);
1351
bufPos
= (int) (pDst - pDstBegin);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (76)
77
bufBytes[
bufPos
++] = (byte) '"';
82
bufBytes[
bufPos
++] = (byte) '"';
85
bufBytes[
bufPos
++] = (byte) ' ';
89
bufBytes[
bufPos
++] = (byte) '[';
91
bufBytes[
bufPos
++] = (byte) ']';
94
bufBytes[this.
bufPos
++] = (byte) '>';
103
bufBytes[
bufPos
++] = (byte) '<';
128
bufBytes[
bufPos
++] = (byte) '<';
129
bufBytes[
bufPos
++] = (byte) '/';
140
bufPos
--;
141
bufBytes[
bufPos
++] = (byte) ' ';
142
bufBytes[
bufPos
++] = (byte) '/';
143
bufBytes[
bufPos
++] = (byte) '>';
154
bufBytes[
bufPos
++] = (byte) '<';
155
bufBytes[
bufPos
++] = (byte) '/';
172
bufBytes[
bufPos
++] = (byte)' ';
192
bufBytes[
bufPos
++] = (byte) '"';
228
bufBytes[
bufPos
++] = (byte)'=';
229
bufBytes[
bufPos
++] = (byte)'"';
241
bufBytes[
bufPos
++] = (byte)'"';
257
bufPos
-= 3;
261
bufBytes[
bufPos
++] = (byte) '<';
262
bufBytes[
bufPos
++] = (byte) '!';
263
bufBytes[
bufPos
++] = (byte) '[';
264
bufBytes[
bufPos
++] = (byte) 'C';
265
bufBytes[
bufPos
++] = (byte) 'D';
266
bufBytes[
bufPos
++] = (byte) 'A';
267
bufBytes[
bufPos
++] = (byte) 'T';
268
bufBytes[
bufPos
++] = (byte) 'A';
269
bufBytes[
bufPos
++] = (byte) '[';
274
bufBytes[
bufPos
++] = (byte) ']';
275
bufBytes[
bufPos
++] = (byte) ']';
276
bufBytes[
bufPos
++] = (byte) '>';
287
bufBytes[
bufPos
++] = (byte) '<';
288
bufBytes[
bufPos
++] = (byte) '!';
289
bufBytes[
bufPos
++] = (byte) '-';
290
bufBytes[
bufPos
++] = (byte) '-';
294
bufBytes[
bufPos
++] = (byte) '-';
295
bufBytes[
bufPos
++] = (byte) '-';
296
bufBytes[
bufPos
++] = (byte) '>';
305
bufBytes[
bufPos
++] = (byte) '<';
306
bufBytes[
bufPos
++] = (byte) '?';
310
bufBytes[
bufPos
++] = (byte) ' ';
314
bufBytes[
bufPos
++] = (byte) '?';
315
bufBytes[
bufPos
++] = (byte) '>';
323
bufBytes[
bufPos
++] = (byte) '&';
325
bufBytes[
bufPos
++] = (byte) ';';
344
bufBytes[
bufPos
++] = (byte)'&';
345
bufBytes[
bufPos
++] = (byte)'#';
346
bufBytes[
bufPos
++] = (byte)'x';
348
bufBytes[
bufPos
++] = (byte)';';
393
bufBytes[
bufPos
++] = (byte)'&';
394
bufBytes[
bufPos
++] = (byte)'#';
395
bufBytes[
bufPos
++] = (byte)'x';
397
bufBytes[
bufPos
++] = (byte)';';
492
bufPos
= 1; // Buffer position starts at 1, because we need to be able to safely step back -1 in case we need to
536
bufPos
= (int)(pDst - pDstBegin);
595
bufPos
= (int)(pDst - pDstBegin);
705
bufPos
= (int)(pDst - pDstBegin);
730
bufPos
= (int)(pDst - pDstBegin);
748
bufPos
= (int)(pDst - pDstBegin);
768
bufPos
= (int)(pDst - pDstBegin);
909
bufPos
= (int)(pDst - pDstBegin);
917
bufPos
= (int)(pDst - pDstBegin);
998
bufPos
= (int)(pDst - pDstBegin);
1019
bufPos
= (int)(pDst - pDstBegin);
1032
bufPos
= (int)(pDst - pDstBegin);
1048
bufPos
= (int)(pDst - pDstBegin);
1171
bufPos
= (int)(pDst - pDstBegin);
1211
bufPos
= (int)(pDst - pDstBegin);
1224
bufPos
= (int)(pDst - pDstBegin);
1246
bufPos
= (int)(pDst - pDstBegin);
1331
bufPos
= (int)(pDst - pDstBegin);
1364
bufPos
= (int)(pDst - pDstBegin);
1377
bufPos
= (int)(pDst - pDstBegin);
1401
bufPos
= (int)(pDst - pDstBegin);
101 references to bufPos
System.Xml (101)
System\Xml\Core\HtmlUtf8RawTextWriter.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
byte * pDst = pDstBegin + this.
bufPos
;
633
byte * 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\XmlUtf8RawTextWriter.cs (42)
261
attrEndPos =
bufPos
;
271
contentPos =
bufPos
;
280
if ( contentPos !=
bufPos
) {
322
if ( attrEndPos ==
bufPos
) {
342
attrEndPos =
bufPos
;
385
attrEndPos =
bufPos
;
394
if ( mergeCDataSections &&
bufPos
== cdataPos ) {
396
Debug.Assert(
bufPos
>= 4 );
418
textPos =
bufPos
;
419
cdataPos =
bufPos
;
464
if (
bufPos
> bufLen ) {
468
textPos =
bufPos
;
486
if (
bufPos
> bufLen ) {
490
textPos =
bufPos
;
537
textPos =
bufPos
;
571
textPos =
bufPos
;
583
textPos =
bufPos
;
636
stream.Write( bufBytes, 1,
bufPos
- 1 );
647
bufBytes[0] = bufBytes[
bufPos
- 1];
652
bufBytes[1] = bufBytes[
bufPos
];
653
bufBytes[2] = bufBytes[
bufPos
+ 1];
654
bufBytes[3] = bufBytes[
bufPos
+ 2];
658
textPos = (textPos ==
bufPos
) ? 1 : 0;
659
attrEndPos = (attrEndPos ==
bufPos
) ? 1 : 0;
678
byte * pDst = pDstBegin + this.
bufPos
;
775
byte * pDst = pDstBegin + this.
bufPos
;
863
textPos =
bufPos
;
880
byte * pDst = pDstBegin + this.
bufPos
;
925
byte * pDst = pDstBegin +
bufPos
;
1007
if (
bufPos
>= bufLen ) {
1020
byte * pDst = pDstBegin +
bufPos
;
1126
if (
bufPos
>= bufLen ) {
1141
byte * pDst = pDstBegin +
bufPos
;
1354
return pDstBegin +
bufPos
;
1568
if ( !mixedContent && base.textPos != base.
bufPos
) {
1578
if ( !mixedContent && base.textPos != base.
bufPos
) {
1609
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1611
if ( base.textPos != base.
bufPos
) {
1623
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1625
if ( base.textPos != base.
bufPos
) {
1650
if ( !mixedContent && base.textPos != base.
bufPos
) {
1658
if ( !mixedContent && base.textPos != base.
bufPos
) {
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (40)
116
attrEndPos =
bufPos
;
126
if ( contentPos !=
bufPos
) {
171
if (attrEndPos ==
bufPos
) {
194
attrEndPos =
bufPos
;
242
attrEndPos =
bufPos
;
254
if ( mergeCDataSections &&
bufPos
== cdataPos ) {
256
Debug.Assert(
bufPos
>= 4 );
278
textPos =
bufPos
;
279
cdataPos =
bufPos
;
327
if (
bufPos
> bufLen ) {
331
textPos =
bufPos
;
350
if (
bufPos
> bufLen ) {
354
textPos =
bufPos
;
398
textPos =
bufPos
;
430
textPos =
bufPos
;
441
textPos =
bufPos
;
466
await stream.WriteAsync( bufBytes, 1,
bufPos
- 1 ).ConfigureAwait(false);
477
bufBytes[0] = bufBytes[
bufPos
- 1];
482
bufBytes[1] = bufBytes[
bufPos
];
483
bufBytes[2] = bufBytes[
bufPos
+ 1];
484
bufBytes[3] = bufBytes[
bufPos
+ 2];
488
textPos = (textPos ==
bufPos
) ? 1 : 0;
489
attrEndPos = (attrEndPos ==
bufPos
) ? 1 : 0;
511
byte * pDst = pDstBegin + this.
bufPos
;
680
byte * pDst = pDstBegin + this.
bufPos
;
769
textPos =
bufPos
;
883
byte * pDst = pDstBegin + this.
bufPos
;
972
byte * pDst = pDstBegin +
bufPos
;
1145
byte * pDst = pDstBegin +
bufPos
;
1257
if (
bufPos
>= bufLen ) {
1305
byte * pDst = pDstBegin +
bufPos
;
1412
if (
bufPos
>= bufLen ) {
1447
if ( !mixedContent && base.textPos != base.
bufPos
) {
1458
if ( !mixedContent && base.textPos != base.
bufPos
) {
1471
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1473
if ( base.textPos != base.
bufPos
) {
1486
if ( !mixedContent && base.contentPos != base.
bufPos
) {
1488
if ( base.textPos != base.
bufPos
) {
1516
if ( !mixedContent && base.textPos != base.
bufPos
) {
1525
if ( !mixedContent && base.textPos != base.
bufPos
) {