24 references to BytesConsumed
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
818var start = reader.BytesConsumed; 820var end = reader.BytesConsumed;
System.Text.Json (22)
System\Text\Json\Document\JsonDocument.cs (1)
1098Debug.Assert(reader.BytesConsumed == utf8JsonSpan.Length);
System\Text\Json\Document\JsonDocument.Parse.cs (1)
494long totalLength = reader.BytesConsumed - startingOffset;
System\Text\Json\Reader\Utf8JsonReader.cs (1)
2557private string DebuggerDisplay => $"TokenType = {DebugTokenType}, TokenStartIndex = {TokenStartIndex}, Consumed = {BytesConsumed}";
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (8)
149TokenStartIndex = BytesConsumed; 492TokenStartIndex = BytesConsumed; 1625TokenStartIndex = BytesConsumed; 1725TokenStartIndex = BytesConsumed; 1771TokenStartIndex = BytesConsumed; 2014TokenStartIndex = BytesConsumed; 2123TokenStartIndex = BytesConsumed; 2180long prevTotalConsumed = BytesConsumed;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
370reader.BytesConsumed,
System\Text\Json\Serialization\JsonConverterOfT.cs (4)
185long originalPropertyBytesConsumed = reader.BytesConsumed; 537if (reader.BytesConsumed != bytesConsumed) 607long originalBytesConsumed = reader.BytesConsumed; 609if (reader.BytesConsumed != originalBytesConsumed)
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
163Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues); 180Debug.Assert(reader.BytesConsumed == (actualByteCount ?? utf8Json.Length) || reader.CurrentState.Options.AllowMultipleValues);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (1)
375long totalLength = reader.BytesConsumed - startingOffset;
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (3)
118Debug.Assert(reader.BytesConsumed <= bufferState.Bytes.Length); 119Debug.Assert(!bufferState.IsFinalBlock || reader.AllowMultipleValues || reader.BytesConsumed == bufferState.Bytes.Length, 122bufferState.AdvanceBuffer((int)reader.BytesConsumed);