16 writes to TokenStartIndex
System.Text.Json (16)
System\Text\Json\Reader\Utf8JsonReader.cs (8)
236
TokenStartIndex
= 0;
842
TokenStartIndex
= _consumed;
1116
TokenStartIndex
= _consumed;
1784
TokenStartIndex
= _consumed;
1884
TokenStartIndex
= _consumed;
1921
TokenStartIndex
= _consumed;
2162
TokenStartIndex
= _consumed;
2258
TokenStartIndex
= _consumed;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (8)
47
TokenStartIndex
= 0;
149
TokenStartIndex
= BytesConsumed;
492
TokenStartIndex
= BytesConsumed;
1625
TokenStartIndex
= BytesConsumed;
1725
TokenStartIndex
= BytesConsumed;
1771
TokenStartIndex
= BytesConsumed;
2014
TokenStartIndex
= BytesConsumed;
2123
TokenStartIndex
= BytesConsumed;
17 references to TokenStartIndex
System.Text.Json (17)
System\Text\Json\Document\JsonDocument.cs (2)
968
Debug.Assert(reader.
TokenStartIndex
<= int.MaxValue);
969
int tokenStart = (int)reader.
TokenStartIndex
;
System\Text\Json\Document\JsonDocument.Parse.cs (7)
478
long startingOffset = reader.
TokenStartIndex
;
564
readerSpan[(int)reader.
TokenStartIndex
] == (byte)'"',
565
$"Calculated span starts with {readerSpan[(int)reader.
TokenStartIndex
]}");
568
readerSpan[(int)reader.
TokenStartIndex
+ payloadLength - 1] == (byte)'"',
569
$"Calculated span ends with {readerSpan[(int)reader.
TokenStartIndex
+ payloadLength - 1]}");
571
valueSpan = readerSpan.Slice((int)reader.
TokenStartIndex
, payloadLength);
586
valueSequence = sequence.Slice(reader.
TokenStartIndex
, payloadLength);
System\Text\Json\Reader\Utf8JsonReader.cs (1)
2557
private string DebuggerDisplay => $"TokenType = {DebugTokenType}, TokenStartIndex = {
TokenStartIndex
}, Consumed = {BytesConsumed}";
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (7)
368
long startingOffset = reader.
TokenStartIndex
;
422
readerSpan[(int)reader.
TokenStartIndex
] == (byte)'"',
423
$"Calculated span starts with {readerSpan[(int)reader.
TokenStartIndex
]}");
426
readerSpan[(int)reader.
TokenStartIndex
+ payloadLength - 1] == (byte)'"',
427
$"Calculated span ends with {readerSpan[(int)reader.
TokenStartIndex
+ payloadLength - 1]}");
429
valueSpan = readerSpan.Slice((int)reader.
TokenStartIndex
, payloadLength);
437
valueSequence = originalSequence.Slice(reader.
TokenStartIndex
, payloadLength);