4 writes to _buffer
System.Text.Json (4)
System\Text\Json\Reader\Utf8JsonReader.cs (1)
215
_buffer
= jsonData;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (3)
26
_buffer
= jsonData.First.Span;
80
_buffer
= memory.Span;
328
_buffer
= memory.Span;
105 references to _buffer
System.Text.Json (105)
System\Text\Json\Reader\Utf8JsonReader.cs (47)
53
internal readonly ReadOnlySpan<byte> OriginalSpan => _sequence.IsEmpty ?
_buffer
: default;
746
ValueSpan =
_buffer
.Slice(_consumed, 1);
768
ValueSpan =
_buffer
.Slice(_consumed, 1);
780
ValueSpan =
_buffer
.Slice(_consumed, 1);
802
ValueSpan =
_buffer
.Slice(_consumed, 1);
826
byte first =
_buffer
[_consumed];
839
first =
_buffer
[_consumed];
919
if (_consumed >= (uint)
_buffer
.Length)
949
if (_consumed >= (uint)
_buffer
.Length)
966
ValueSpan =
_buffer
.Slice(_consumed, 1);
976
ValueSpan =
_buffer
.Slice(_consumed, 1);
984
ReadOnlySpan<byte> localBuffer =
_buffer
;
1010
ReadOnlySpan<byte> localBuffer =
_buffer
;
1094
if (_consumed >= (uint)
_buffer
.Length)
1103
marker =
_buffer
[_consumed];
1113
marker =
_buffer
[_consumed];
1135
ReadOnlySpan<byte> span =
_buffer
.Slice(_consumed);
1207
if (!TryGetNumber(
_buffer
.Slice(_consumed), out int consumed))
1216
if (_consumed >= (uint)
_buffer
.Length)
1223
ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedEndOfDigitNotFound,
_buffer
[_consumed - 1]);
1230
((_consumed <
_buffer
.Length) &&
1232
JsonConstants.Delimiters.IndexOf(
_buffer
[_consumed]) >= 0)
1233
|| (_isNotPrimitive ^ (_consumed >= (uint)
_buffer
.Length)));
1252
byte first =
_buffer
[_consumed];
1264
first =
_buffer
[_consumed];
1281
Debug.Assert(
_buffer
.Length >= _consumed + 1);
1282
Debug.Assert(
_buffer
[_consumed] == JsonConstants.Quote);
1285
ReadOnlySpan<byte> localBuffer =
_buffer
.Slice(_consumed + 1);
1760
if (_consumed >= (uint)
_buffer
.Length)
1770
byte first =
_buffer
[_consumed];
1781
first =
_buffer
[_consumed];
1859
byte first =
_buffer
[_consumed];
1869
first =
_buffer
[_consumed];
1897
if (_consumed >= (uint)
_buffer
.Length)
1907
first =
_buffer
[_consumed];
1918
first =
_buffer
[_consumed];
2094
marker =
_buffer
[_consumed];
2104
marker =
_buffer
[_consumed];
2130
marker =
_buffer
[_consumed];
2141
marker =
_buffer
[_consumed];
2229
if (_consumed >= (uint)
_buffer
.Length)
2239
marker =
_buffer
[_consumed];
2250
marker =
_buffer
[_consumed];
2317
ReadOnlySpan<byte> localBuffer =
_buffer
.Slice(_consumed + 1);
2494
ReadOnlySpan<byte> localBuffer =
_buffer
.Slice(_consumed + 1);
2529
ValueSpan =
_buffer
.Slice(previousConsumed + 2, idx);
2547
ValueSpan =
_buffer
.Slice(previousConsumed + 2, idx);
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (58)
68
bool firstSegmentIsEmpty =
_buffer
.Length == 0;
133
byte first =
_buffer
[_consumed];
146
first =
_buffer
[_consumed];
252
if (_consumed >= (uint)
_buffer
.Length)
280
if (_consumed >= (uint)
_buffer
.Length)
341
ValueSpan =
_buffer
.Slice(_consumed, 1);
351
ValueSpan =
_buffer
.Slice(_consumed, 1);
360
if (!TryGetNumberMultiSegment(
_buffer
.Slice(_consumed), out int numberOfBytes))
384
if (_consumed <
_buffer
.Length)
461
if (_consumed >= (uint)
_buffer
.Length)
478
marker =
_buffer
[_consumed];
489
marker =
_buffer
[_consumed];
512
ReadOnlySpan<byte> span =
_buffer
.Slice(_consumed);
592
span =
_buffer
;
673
if (!TryGetNumberMultiSegment(
_buffer
.Slice(_consumed), out int consumed))
681
if (_consumed >= (uint)
_buffer
.Length)
688
ThrowHelper.ThrowJsonReaderException(ref this, ExceptionResource.ExpectedEndOfDigitNotFound,
_buffer
[_consumed - 1]);
695
((_consumed <
_buffer
.Length) &&
697
JsonConstants.Delimiters.IndexOf(
_buffer
[_consumed]) >= 0)
698
|| (_isNotPrimitive ^ (_consumed >= (uint)
_buffer
.Length)));
717
byte first =
_buffer
[_consumed];
729
first =
_buffer
[_consumed];
746
Debug.Assert(
_buffer
.Length >= _consumed + 1);
747
Debug.Assert(
_buffer
[_consumed] == JsonConstants.Quote);
750
ReadOnlySpan<byte> localBuffer =
_buffer
.Slice(_consumed + 1);
793
int leftOver =
_buffer
.Length - _consumed;
810
ReadOnlySpan<byte> localBuffer =
_buffer
;
900
localBuffer =
_buffer
;
927
localBuffer =
_buffer
;
963
int leftOverFromConsumed =
_buffer
.Length - _consumed;
1041
data =
_buffer
;
1074
data =
_buffer
;
1279
data =
_buffer
;
1329
data =
_buffer
;
1389
data =
_buffer
;
1447
data =
_buffer
;
1482
data =
_buffer
;
1510
data =
_buffer
;
1592
if (_consumed >= (uint)
_buffer
.Length)
1611
byte first =
_buffer
[_consumed];
1622
first =
_buffer
[_consumed];
1700
byte first =
_buffer
[_consumed];
1710
first =
_buffer
[_consumed];
1738
if (_consumed >= (uint)
_buffer
.Length)
1757
first =
_buffer
[_consumed];
1768
first =
_buffer
[_consumed];
1946
marker =
_buffer
[_consumed];
1956
marker =
_buffer
[_consumed];
1982
marker =
_buffer
[_consumed];
1993
marker =
_buffer
[_consumed];
2085
if (_consumed >= (uint)
_buffer
.Length)
2104
marker =
_buffer
[_consumed];
2115
marker =
_buffer
[_consumed];
2236
ReadOnlySpan<byte> localBuffer =
_buffer
.Slice(_consumed);
2256
localBuffer =
_buffer
;
2302
localBuffer =
_buffer
;
2399
localBuffer =
_buffer
;
2593
localBuffer =
_buffer
;