17 writes to HasValueSequence
System.Text.Json (17)
System\Text\Json\Reader\Utf8JsonReader.cs (1)
246
HasValueSequence
= false;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (16)
53
HasValueSequence
= false;
123
HasValueSequence
= false;
530
HasValueSequence
= false;
596
HasValueSequence
= true;
765
HasValueSequence
= false;
792
HasValueSequence
= true;
962
HasValueSequence
= false;
1043
HasValueSequence
= true;
1076
HasValueSequence
= true;
1277
HasValueSequence
= true;
1327
HasValueSequence
= true;
1387
HasValueSequence
= true;
1445
HasValueSequence
= true;
1480
HasValueSequence
= true;
1508
HasValueSequence
= true;
2196
HasValueSequence
= !commentSequence.IsSingleSegment;
51 references to HasValueSequence
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
202
if (!reader.
HasValueSequence
)
System.Text.Json (50)
System\Text\Json\Document\JsonDocument.Parse.cs (4)
520
if (reader.
HasValueSequence
)
537
if (reader.
HasValueSequence
)
577
if (reader.
HasValueSequence
)
603
Debug.Assert(!reader.
HasValueSequence
);
System\Text\Json\JsonHelpers.cs (1)
24
ReadOnlySpan<byte> span = reader.
HasValueSequence
? reader.ValueSequence.ToArray() : reader.ValueSpan;
System\Text\Json\Reader\Utf8JsonReader.cs (11)
55
internal readonly int ValueLength =>
HasValueSequence
? checked((int)ValueSequence.Length) : ValueSpan.Length;
67
/// If <see cref="
HasValueSequence
"/> is true, <see cref="ValueSpan"/> contains useless data, likely for
68
/// a previous single-segment token. Therefore, only access <see cref="ValueSpan"/> if <see cref="
HasValueSequence
"/> is false.
156
/// If <see cref="
HasValueSequence
"/> is false, <see cref="ValueSequence"/> contains useless data, likely for
157
/// a previous multi-segment token. Therefore, only access <see cref="ValueSequence"/> if <see cref="
HasValueSequence
"/> is true.
491
if (
HasValueSequence
)
576
Debug.Assert(
HasValueSequence
);
612
Debug.Assert(!
HasValueSequence
);
633
Debug.Assert(
HasValueSequence
);
698
if (
HasValueSequence
)
2582
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (5)
1036
if (
HasValueSequence
)
1069
if (
HasValueSequence
)
1080
if (
HasValueSequence
)
1235
if (
HasValueSequence
)
2198
if (
HasValueSequence
)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (22)
39
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
96
if (
HasValueSequence
)
166
if (
HasValueSequence
)
203
if (
HasValueSequence
)
245
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
262
Debug.Assert((
HasValueSequence
? ValueSequence.ToArray() : ValueSpan).Length == 4);
271
Debug.Assert((
HasValueSequence
? ValueSequence.ToArray() : ValueSpan).Length == 5);
834
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
862
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
898
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
933
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
968
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1003
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1039
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1075
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1111
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1146
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1176
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1206
ReadOnlySpan<byte> span =
HasValueSequence
? ValueSequence.ToArray() : ValueSpan;
1248
if (
HasValueSequence
)
1313
if (
HasValueSequence
)
1379
if (
HasValueSequence
)
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (1)
39
if (!reader.
HasValueSequence
&& !reader.ValueIsEscaped)
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (1)
43
if (!reader.
HasValueSequence
&& !reader.ValueIsEscaped)
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (1)
43
if (!reader.
HasValueSequence
&& !reader.ValueIsEscaped)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (3)
397
if (reader.
HasValueSequence
)
433
long payloadLength = reader.
HasValueSequence
450
byte displayByte = reader.
HasValueSequence
System\Text\Json\ThrowHelper.Serialization.cs (1)
756
state.Current.JsonPropertyName = reader.
HasValueSequence
? reader.ValueSequence.ToArray() : reader.ValueSpan.ToArray();