109 writes to _bytePositionInLine
System.Text.Json (109)
System\Text\Json\Reader\Utf8JsonReader.cs (47)
221
_bytePositionInLine
= state._bytePositionInLine;
748
_bytePositionInLine
++;
782
_bytePositionInLine
++;
811
_bytePositionInLine
++;
877
_bytePositionInLine
= prevPosition;
968
_bytePositionInLine
++;
978
_bytePositionInLine
++;
994
_bytePositionInLine
+= numberOfBytes;
1027
_bytePositionInLine
= 0;
1031
_bytePositionInLine
++;
1147
_bytePositionInLine
+= literal.Length;
1163
_bytePositionInLine
+= i;
1178
_bytePositionInLine
+= indexOfFirstMismatch;
1214
_bytePositionInLine
+= consumed;
1274
_bytePositionInLine
++;
1298
_bytePositionInLine
+= idx + 2; // Add 2 for the start and end quotes.
1314
_bytePositionInLine
+= localBuffer.Length + 1; // Account for the start quote
1333
_bytePositionInLine
+= idx + 1; // Add 1 for the first quote
1362
_bytePositionInLine
++; // move past the 'u'
1382
_bytePositionInLine
++;
1392
_bytePositionInLine
= prevLineBytePosition;
1397
_bytePositionInLine
++; // Add 1 for the end quote
1418
_bytePositionInLine
++;
1476
_bytePositionInLine
+= i;
1500
_bytePositionInLine
+= i;
1529
_bytePositionInLine
+= i;
1549
_bytePositionInLine
+= i;
1558
_bytePositionInLine
+= i;
1595
_bytePositionInLine
+= i;
1643
_bytePositionInLine
+= i;
1651
_bytePositionInLine
+= i;
1665
_bytePositionInLine
+= i;
1679
_bytePositionInLine
+= i;
1689
_bytePositionInLine
+= i;
1712
_bytePositionInLine
= prevPosition;
1758
_bytePositionInLine
++;
1765
_bytePositionInLine
--;
1895
_bytePositionInLine
++;
1902
_bytePositionInLine
--;
2018
_bytePositionInLine
= prevPosition;
2185
_bytePositionInLine
= prevPosition;
2227
_bytePositionInLine
++;
2234
_bytePositionInLine
--;
2384
_bytePositionInLine
+= 2 + localBuffer.Length;
2394
_bytePositionInLine
= 0;
2482
_bytePositionInLine
= idx - newLineIndex + 1;
2486
_bytePositionInLine
+= 4 + idx;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (62)
32
_bytePositionInLine
= state._bytePositionInLine;
186
_bytePositionInLine
= prevPosition;
343
_bytePositionInLine
++;
353
_bytePositionInLine
++;
534
_bytePositionInLine
+= consumed;
549
_bytePositionInLine
+= FindMismatch(span, literal);
560
_bytePositionInLine
+= FindMismatch(span, literal);
575
_bytePositionInLine
+= alreadyMatched;
606
_bytePositionInLine
+= FindMismatch(span, leftToMatch);
739
_bytePositionInLine
++;
763
_bytePositionInLine
+= idx + 2; // Add 2 for the start and end quotes.
780
_bytePositionInLine
+= localBuffer.Length + 1; // Account for the start quote
801
_bytePositionInLine
+= leftOver;
819
_bytePositionInLine
+= leftOver + idx + 1; // Add 1 for the end quote of the string.
827
_bytePositionInLine
+= leftOver + idx;
861
_bytePositionInLine
++; // move past the 'u'
876
_bytePositionInLine
++;
912
_bytePositionInLine
++;
932
_bytePositionInLine
++; // Add 1 for the end quote of the string.
941
_bytePositionInLine
+= localBuffer.Length;
965
_bytePositionInLine
+= idx + 1; // Add 1 for the first quote
998
_bytePositionInLine
++; // move past the 'u'
1013
_bytePositionInLine
++;
1054
_bytePositionInLine
++;
1082
_bytePositionInLine
++; // Add 1 for the end quote of the string.
1091
_bytePositionInLine
++; // Add 1 for the end quote
1109
_bytePositionInLine
= state._prevBytePositionInLine;
1182
_bytePositionInLine
++;
1205
_bytePositionInLine
++;
1217
_bytePositionInLine
++;
1258
_bytePositionInLine
++;
1297
_bytePositionInLine
++;
1368
_bytePositionInLine
+= counter;
1378
_bytePositionInLine
+= counter;
1385
_bytePositionInLine
+= counter;
1398
_bytePositionInLine
+= i;
1415
_bytePositionInLine
+= counter;
1456
_bytePositionInLine
++;
1489
_bytePositionInLine
++;
1542
_bytePositionInLine
= prevPosition;
1590
_bytePositionInLine
++;
1597
_bytePositionInLine
--;
1605
_bytePositionInLine
--;
1736
_bytePositionInLine
++;
1743
_bytePositionInLine
--;
1751
_bytePositionInLine
--;
1869
_bytePositionInLine
= prevPosition;
2039
_bytePositionInLine
= prevPosition;
2083
_bytePositionInLine
++;
2090
_bytePositionInLine
--;
2098
_bytePositionInLine
--;
2234
_bytePositionInLine
++;
2268
_bytePositionInLine
++;
2342
_bytePositionInLine
+= idx + 1;
2358
_bytePositionInLine
++;
2369
_bytePositionInLine
+= localBuffer.Length;
2402
_bytePositionInLine
= 0;
2521
_bytePositionInLine
++;
2553
_bytePositionInLine
+= nextIdx;
2556
_bytePositionInLine
= 0;
2561
_bytePositionInLine
= 0;
2570
_bytePositionInLine
+= localBuffer.Length;
14 references to _bytePositionInLine
System.Text.Json (14)
System\Text\Json\Reader\Utf8JsonReader.cs (6)
190
bytePositionInLine:
_bytePositionInLine
,
869
long prevPosition =
_bytePositionInLine
;
1330
long prevLineBytePosition =
_bytePositionInLine
;
1699
long prevPosition =
_bytePositionInLine
;
2011
long prevPosition =
_bytePositionInLine
;
2178
long prevPosition =
_bytePositionInLine
;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (8)
177
long prevPosition =
_bytePositionInLine
;
551
int amountToWrite = Math.Min(span.Length, (int)
_bytePositionInLine
+ 1);
561
int amountToWrite = Math.Min(span.Length, (int)
_bytePositionInLine
+ 1);
608
amountToWrite = Math.Min(span.Length, (int)
_bytePositionInLine
+ 1);
1528
long prevPosition =
_bytePositionInLine
;
1862
long prevPosition =
_bytePositionInLine
;
2031
long prevPosition =
_bytePositionInLine
;
2601
return new PartialStateForRollback(_totalConsumed,
_bytePositionInLine
, _consumed, _currentPosition);