8 writes to ValueSequence
System.Text.Json (8)
System\Text\Json\Reader\Utf8JsonReader.cs (1)
247ValueSequence = ReadOnlySequence<byte>.Empty;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (7)
54ValueSequence = ReadOnlySequence<byte>.Empty; 126ValueSequence = default; 599ValueSequence = _sequence.Slice(start, end); 945ValueSequence = _sequence.Slice(start, end); 1087ValueSequence = _sequence.Slice(start, end); 1239ValueSequence = _sequence.Slice(start, end); 2200ValueSequence = commentSequence;
47 references to ValueSequence
System.Text.Json (47)
System\Text\Json\Document\JsonDocument.Parse.cs (3)
522valueSequence = reader.ValueSequence; 539valueSequence = reader.ValueSequence; 579payloadLength += reader.ValueSequence.Length;
System\Text\Json\JsonHelpers.cs (1)
24ReadOnlySpan<byte> span = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan;
System\Text\Json\Reader\Utf8JsonReader.cs (12)
55internal readonly int ValueLength => HasValueSequence ? checked((int)ValueSequence.Length) : ValueSpan.Length; 64/// Otherwise, the <see cref="ValueSequence"/> will contain the token value. 69/// Otherwise, the token value must be accessed from <see cref="ValueSequence"/>. 136/// Lets the caller know whether the current <see cref="ValueSpan" /> or <see cref="ValueSequence"/> properties 153/// Otherwise, the <see cref="ValueSequence"/> will contain the token value. 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. 583ReadOnlySequence<byte> localSequence = ValueSequence; 634Debug.Assert(!ValueSequence.IsSingleSegment); 636ReadOnlySequence<byte> localSequence = ValueSequence; 729long sourceLength = ValueSequence.Length; 2582ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan;
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (27)
39ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 59/// An appropriately sized buffer can be determined by consulting the length of either <see cref="ValueSpan"/> or <see cref="ValueSequence"/>, 98ReadOnlySequence<byte> valueSequence = ValueSequence; 123/// An appropriately sized buffer can be determined by consulting the length of either <see cref="ValueSpan"/> or <see cref="ValueSequence"/>, 168ReadOnlySequence<byte> valueSequence = ValueSequence; 205ReadOnlySequence<byte> valueSequence = ValueSequence; 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; 1250long sequenceLength = ValueSequence.Length; 1258ValueSequence.CopyTo(stackSpan); 1315long sequenceLength = ValueSequence.Length; 1323ValueSequence.CopyTo(stackSpan); 1381long sequenceLength = ValueSequence.Length; 1389ValueSequence.CopyTo(stackSpan);
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (3)
399valueSequence = reader.ValueSequence; 434? reader.ValueSequence.Length + 2 451? reader.ValueSequence.First.Span[0]
System\Text\Json\ThrowHelper.Serialization.cs (1)
756state.Current.JsonPropertyName = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan.ToArray();