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