7 writes to _memory
System.Text.Json (7)
System\Text\Json\Writer\Utf8JsonWriter.cs (7)
266
_memory
= default;
302
_memory
= default;
416
_memory
= default;
1080
_memory
= _arrayBufferWriter.GetMemory(needed);
1092
_memory
= _output.GetMemory(sizeHint);
1111
_memory
= _arrayBufferWriter.GetMemory(sizeHint);
1117
_memory
= _output.GetMemory(sizeHint);
194 references to _memory
System.Text.Json (194)
System\Text\Json\Writer\Utf8JsonWriter.cs (14)
500
if (
_memory
.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator
505
Span<byte> output =
_memory
.Span;
566
if (
_memory
.Length - BytesPending < maxRequired)
571
Span<byte> output =
_memory
.Span;
931
if (
_memory
.Length - BytesPending < 1) // 1 end token
936
Span<byte> output =
_memory
.Span;
1010
if (
_memory
.Length - BytesPending < maxRequired)
1015
Span<byte> output =
_memory
.Span;
1063
if (
_memory
.Length == 0)
1082
Debug.Assert(
_memory
.Length >= sizeHint);
1094
if (
_memory
.Length < sizeHint)
1103
Debug.Assert(
_memory
.Length == 0);
1112
Debug.Assert(
_memory
.Length >= sizeHint);
1119
if (
_memory
.Length < sizeHint)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (8)
219
if (
_memory
.Length - BytesPending < maxRequired)
224
Span<byte> output =
_memory
.Span;
254
if (
_memory
.Length - BytesPending < maxRequired)
259
Span<byte> output =
_memory
.Span;
293
if (
_memory
.Length - BytesPending < maxRequired)
298
Span<byte> output =
_memory
.Span;
343
if (
_memory
.Length - BytesPending < maxRequired)
348
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (8)
224
if (
_memory
.Length - BytesPending < maxRequired)
229
Span<byte> output =
_memory
.Span;
257
if (
_memory
.Length - BytesPending < maxRequired)
262
Span<byte> output =
_memory
.Span;
295
if (
_memory
.Length - BytesPending < maxRequired)
300
Span<byte> output =
_memory
.Span;
343
if (
_memory
.Length - BytesPending < maxRequired)
348
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (8)
223
if (
_memory
.Length - BytesPending < maxRequired)
228
Span<byte> output =
_memory
.Span;
256
if (
_memory
.Length - BytesPending < maxRequired)
261
Span<byte> output =
_memory
.Span;
294
if (
_memory
.Length - BytesPending < maxRequired)
299
Span<byte> output =
_memory
.Span;
342
if (
_memory
.Length - BytesPending < maxRequired)
347
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (8)
223
if (
_memory
.Length - BytesPending < maxRequired)
228
Span<byte> output =
_memory
.Span;
253
if (
_memory
.Length - BytesPending < maxRequired)
258
Span<byte> output =
_memory
.Span;
288
if (
_memory
.Length - BytesPending < maxRequired)
293
Span<byte> output =
_memory
.Span;
333
if (
_memory
.Length - BytesPending < maxRequired)
338
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (8)
227
if (
_memory
.Length - BytesPending < maxRequired)
232
Span<byte> output =
_memory
.Span;
257
if (
_memory
.Length - BytesPending < maxRequired)
262
Span<byte> output =
_memory
.Span;
292
if (
_memory
.Length - BytesPending < maxRequired)
297
Span<byte> output =
_memory
.Span;
337
if (
_memory
.Length - BytesPending < maxRequired)
342
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (8)
227
if (
_memory
.Length - BytesPending < maxRequired)
232
Span<byte> output =
_memory
.Span;
257
if (
_memory
.Length - BytesPending < maxRequired)
262
Span<byte> output =
_memory
.Span;
292
if (
_memory
.Length - BytesPending < maxRequired)
297
Span<byte> output =
_memory
.Span;
337
if (
_memory
.Length - BytesPending < maxRequired)
342
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (8)
223
if (
_memory
.Length - BytesPending < maxRequired)
228
Span<byte> output =
_memory
.Span;
257
if (
_memory
.Length - BytesPending < maxRequired)
262
Span<byte> output =
_memory
.Span;
296
if (
_memory
.Length - BytesPending < maxRequired)
301
Span<byte> output =
_memory
.Span;
345
if (
_memory
.Length - BytesPending < maxRequired)
350
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (8)
68
if (
_memory
.Length - BytesPending < maxRequired)
73
Span<byte> output =
_memory
.Span;
99
if (
_memory
.Length - BytesPending < maxRequired)
104
Span<byte> output =
_memory
.Span;
141
if (
_memory
.Length - BytesPending < maxRequired)
146
Span<byte> output =
_memory
.Span;
172
if (
_memory
.Length - BytesPending < maxRequired)
177
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (10)
346
if (
_memory
.Length - BytesPending < maxRequired)
351
Span<byte> output =
_memory
.Span;
376
if (
_memory
.Length - BytesPending < maxRequired)
381
Span<byte> output =
_memory
.Span;
409
if (
_memory
.Length - BytesPending < maxRequired)
414
Span<byte> output =
_memory
.Span;
439
if (
_memory
.Length - BytesPending < maxRequired)
444
Span<byte> output =
_memory
.Span;
484
if (
_memory
.Length - BytesPending < maxRequired)
489
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (8)
299
if (
_memory
.Length - BytesPending < maxRequired)
304
Span<byte> output =
_memory
.Span;
329
if (
_memory
.Length - BytesPending < maxRequired)
334
Span<byte> output =
_memory
.Span;
364
if (
_memory
.Length - BytesPending < maxRequired)
369
Span<byte> output =
_memory
.Span;
409
if (
_memory
.Length - BytesPending < maxRequired)
414
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (26)
168
if (
_memory
.Length - BytesPending < maxRequired)
173
Span<byte> output =
_memory
.Span;
199
if (
_memory
.Length - BytesPending < maxRequired)
204
Span<byte> output =
_memory
.Span;
328
if (
_memory
.Length - BytesPending < maxRequired)
333
Span<byte> output =
_memory
.Span;
357
if (
_memory
.Length - BytesPending < maxRequired)
362
Span<byte> output =
_memory
.Span;
386
if (
_memory
.Length - BytesPending < maxRequired)
391
Span<byte> output =
_memory
.Span;
1379
if (
_memory
.Length - BytesPending < maxRequired)
1384
Span<byte> output =
_memory
.Span;
1413
if (
_memory
.Length - BytesPending < maxRequired)
1418
Span<byte> output =
_memory
.Span;
1450
if (
_memory
.Length - BytesPending < maxRequired)
1455
Span<byte> output =
_memory
.Span;
1486
if (
_memory
.Length - BytesPending < maxRequired)
1491
Span<byte> output =
_memory
.Span;
1525
if (
_memory
.Length - BytesPending < maxRequired)
1530
Span<byte> output =
_memory
.Span;
1574
if (
_memory
.Length - BytesPending < maxRequired)
1579
Span<byte> output =
_memory
.Span;
1626
if (
_memory
.Length - BytesPending < maxRequired)
1631
Span<byte> output =
_memory
.Span;
1677
if (
_memory
.Length - BytesPending < maxRequired)
1682
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (8)
308
if (
_memory
.Length - BytesPending < maxRequired)
313
Span<byte> output =
_memory
.Span;
338
if (
_memory
.Length - BytesPending < maxRequired)
343
Span<byte> output =
_memory
.Span;
373
if (
_memory
.Length - BytesPending < maxRequired)
378
Span<byte> output =
_memory
.Span;
418
if (
_memory
.Length - BytesPending < maxRequired)
423
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (4)
69
if (
_memory
.Length - BytesPending < maxRequired)
74
Span<byte> output =
_memory
.Span;
109
if (
_memory
.Length - BytesPending < maxRequired)
114
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (8)
82
if (
_memory
.Length - BytesPending < maxRequired)
87
Span<byte> output =
_memory
.Span;
116
if (
_memory
.Length - BytesPending < maxRequired)
121
Span<byte> output =
_memory
.Span;
195
if (
_memory
.Length - BytesPending < maxRequired)
200
Span<byte> output =
_memory
.Span;
222
if (
_memory
.Length - BytesPending < maxRequired)
227
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (4)
46
if (
_memory
.Length - BytesPending < maxRequired)
51
Span<byte> output =
_memory
.Span;
74
if (
_memory
.Length - BytesPending < maxRequired)
79
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (4)
47
if (
_memory
.Length - BytesPending < maxRequired)
52
Span<byte> output =
_memory
.Span;
75
if (
_memory
.Length - BytesPending < maxRequired)
80
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (4)
46
if (
_memory
.Length - BytesPending < maxRequired)
51
Span<byte> output =
_memory
.Span;
70
if (
_memory
.Length - BytesPending < maxRequired)
75
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (4)
50
if (
_memory
.Length - BytesPending < maxRequired)
55
Span<byte> output =
_memory
.Span;
74
if (
_memory
.Length - BytesPending < maxRequired)
79
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (4)
50
if (
_memory
.Length - BytesPending < maxRequired)
55
Span<byte> output =
_memory
.Span;
74
if (
_memory
.Length - BytesPending < maxRequired)
79
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (4)
51
if (
_memory
.Length - BytesPending < maxRequired)
56
Span<byte> output =
_memory
.Span;
76
if (
_memory
.Length - BytesPending < maxRequired)
81
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (4)
46
if (
_memory
.Length - BytesPending < maxRequired)
51
Span<byte> output =
_memory
.Span;
75
if (
_memory
.Length - BytesPending < maxRequired)
80
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (4)
70
if (
_memory
.Length - BytesPending < maxRequired)
75
Span<byte> output =
_memory
.Span;
94
if (
_memory
.Length - BytesPending < maxRequired)
99
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
178
if (
_memory
.Length - BytesPending < maxRequired)
183
Span<byte> output =
_memory
.Span;
266
if (
_memory
.Length - BytesPending < maxRequired)
271
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (4)
59
if (
_memory
.Length - BytesPending < maxRequired)
64
Span<byte> output =
_memory
.Span;
83
if (
_memory
.Length - BytesPending < maxRequired)
88
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (8)
124
if (
_memory
.Length - BytesPending < maxRequired)
129
Span<byte> output =
_memory
.Span;
154
if (
_memory
.Length - BytesPending < maxRequired)
159
Span<byte> output =
_memory
.Span;
270
if (
_memory
.Length - BytesPending < maxRequired)
275
Span<byte> output =
_memory
.Span;
300
if (
_memory
.Length - BytesPending < maxRequired)
305
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (4)
61
if (
_memory
.Length - BytesPending < maxRequired)
66
Span<byte> output =
_memory
.Span;
85
if (
_memory
.Length - BytesPending < maxRequired)
90
Span<byte> output =
_memory
.Span;