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