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