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