7 writes to _memory
System.Text.Json (7)
System\Text\Json\Writer\Utf8JsonWriter.cs (7)
372
_memory
= default;
411
_memory
= default;
520
_memory
= default;
1192
_memory
= _arrayBufferWriter.GetMemory(needed);
1204
_memory
= _output.GetMemory(sizeHint);
1223
_memory
= _arrayBufferWriter.GetMemory(sizeHint);
1229
_memory
= _output.GetMemory(sizeHint);
206 references to _memory
System.Text.Json (206)
System\Text\Json\Writer\Utf8JsonWriter.cs (14)
597
if (
_memory
.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator
602
Span<byte> output =
_memory
.Span;
676
if (
_memory
.Length - BytesPending < maxRequired)
681
Span<byte> output =
_memory
.Span;
1041
if (
_memory
.Length - BytesPending < 1) // 1 end token
1046
Span<byte> output =
_memory
.Span;
1122
if (
_memory
.Length - BytesPending < maxRequired)
1127
Span<byte> output =
_memory
.Span;
1175
if (
_memory
.Length == 0)
1194
Debug.Assert(
_memory
.Length >= sizeHint);
1206
if (
_memory
.Length < sizeHint)
1215
Debug.Assert(
_memory
.Length == 0);
1224
Debug.Assert(
_memory
.Length >= sizeHint);
1231
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)
82
if (
_memory
.Length - BytesPending < maxRequired)
87
Span<byte> output =
_memory
.Span;
113
if (
_memory
.Length - BytesPending < maxRequired)
118
Span<byte> output =
_memory
.Span;
155
if (
_memory
.Length - BytesPending < maxRequired)
160
Span<byte> output =
_memory
.Span;
186
if (
_memory
.Length - BytesPending < maxRequired)
191
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)
89
if (
_memory
.Length - BytesPending < maxRequired)
94
Span<byte> output =
_memory
.Span;
123
if (
_memory
.Length - BytesPending < maxRequired)
128
Span<byte> output =
_memory
.Span;
202
if (
_memory
.Length - BytesPending < maxRequired)
207
Span<byte> output =
_memory
.Span;
229
if (
_memory
.Length - BytesPending < maxRequired)
234
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.StringSegment.cs (12)
170
if (
_memory
.Length - BytesPending < requiredBytes)
175
Span<byte> output =
_memory
.Span;
336
if (
_memory
.Length - BytesPending < requiredBytes)
341
Span<byte> output =
_memory
.Span;
449
if (
_memory
.Length - BytesPending < requiredBytes)
454
Span<byte> output =
_memory
.Span;
480
if (
_memory
.Length - BytesPending < bytesRequired)
485
Span<byte> output =
_memory
.Span;
509
if (
_memory
.Length - BytesPending < bytesRequired)
514
Span<byte> output =
_memory
.Span;
526
if (
_memory
.Length == BytesPending)
531
_memory
.Span[BytesPending++] = JsonConstants.Quote;
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;