7 writes to _memory
System.Text.Json (7)
System\Text\Json\Writer\Utf8JsonWriter.cs (7)
366
_memory
= default;
405
_memory
= default;
514
_memory
= default;
1180
_memory
= _arrayBufferWriter.GetMemory(needed);
1192
_memory
= _output.GetMemory(sizeHint);
1211
_memory
= _arrayBufferWriter.GetMemory(sizeHint);
1217
_memory
= _output.GetMemory(sizeHint);
206 references to _memory
System.Text.Json (206)
System\Text\Json\Writer\Utf8JsonWriter.cs (14)
591
if (
_memory
.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator
596
Span<byte> output =
_memory
.Span;
670
if (
_memory
.Length - BytesPending < maxRequired)
675
Span<byte> output =
_memory
.Span;
1029
if (
_memory
.Length - BytesPending < 1) // 1 end token
1034
Span<byte> output =
_memory
.Span;
1110
if (
_memory
.Length - BytesPending < maxRequired)
1115
Span<byte> output =
_memory
.Span;
1163
if (
_memory
.Length == 0)
1182
Debug.Assert(
_memory
.Length >= sizeHint);
1194
if (
_memory
.Length < sizeHint)
1203
Debug.Assert(
_memory
.Length == 0);
1212
Debug.Assert(
_memory
.Length >= sizeHint);
1219
if (
_memory
.Length < sizeHint)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (8)
216
if (
_memory
.Length - BytesPending < maxRequired)
221
Span<byte> output =
_memory
.Span;
251
if (
_memory
.Length - BytesPending < maxRequired)
256
Span<byte> output =
_memory
.Span;
290
if (
_memory
.Length - BytesPending < maxRequired)
295
Span<byte> output =
_memory
.Span;
340
if (
_memory
.Length - BytesPending < maxRequired)
345
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (8)
221
if (
_memory
.Length - BytesPending < maxRequired)
226
Span<byte> output =
_memory
.Span;
254
if (
_memory
.Length - BytesPending < maxRequired)
259
Span<byte> output =
_memory
.Span;
292
if (
_memory
.Length - BytesPending < maxRequired)
297
Span<byte> output =
_memory
.Span;
340
if (
_memory
.Length - BytesPending < maxRequired)
345
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (8)
220
if (
_memory
.Length - BytesPending < maxRequired)
225
Span<byte> output =
_memory
.Span;
253
if (
_memory
.Length - BytesPending < maxRequired)
258
Span<byte> output =
_memory
.Span;
291
if (
_memory
.Length - BytesPending < maxRequired)
296
Span<byte> output =
_memory
.Span;
339
if (
_memory
.Length - BytesPending < maxRequired)
344
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (8)
220
if (
_memory
.Length - BytesPending < maxRequired)
225
Span<byte> output =
_memory
.Span;
250
if (
_memory
.Length - BytesPending < maxRequired)
255
Span<byte> output =
_memory
.Span;
285
if (
_memory
.Length - BytesPending < maxRequired)
290
Span<byte> output =
_memory
.Span;
330
if (
_memory
.Length - BytesPending < maxRequired)
335
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (8)
224
if (
_memory
.Length - BytesPending < maxRequired)
229
Span<byte> output =
_memory
.Span;
254
if (
_memory
.Length - BytesPending < maxRequired)
259
Span<byte> output =
_memory
.Span;
289
if (
_memory
.Length - BytesPending < maxRequired)
294
Span<byte> output =
_memory
.Span;
334
if (
_memory
.Length - BytesPending < maxRequired)
339
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (8)
224
if (
_memory
.Length - BytesPending < maxRequired)
229
Span<byte> output =
_memory
.Span;
254
if (
_memory
.Length - BytesPending < maxRequired)
259
Span<byte> output =
_memory
.Span;
289
if (
_memory
.Length - BytesPending < maxRequired)
294
Span<byte> output =
_memory
.Span;
334
if (
_memory
.Length - BytesPending < maxRequired)
339
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (8)
220
if (
_memory
.Length - BytesPending < maxRequired)
225
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;
342
if (
_memory
.Length - BytesPending < maxRequired)
347
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)
340
if (
_memory
.Length - BytesPending < maxRequired)
345
Span<byte> output =
_memory
.Span;
370
if (
_memory
.Length - BytesPending < maxRequired)
375
Span<byte> output =
_memory
.Span;
403
if (
_memory
.Length - BytesPending < maxRequired)
408
Span<byte> output =
_memory
.Span;
433
if (
_memory
.Length - BytesPending < maxRequired)
438
Span<byte> output =
_memory
.Span;
478
if (
_memory
.Length - BytesPending < maxRequired)
483
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (8)
293
if (
_memory
.Length - BytesPending < maxRequired)
298
Span<byte> output =
_memory
.Span;
323
if (
_memory
.Length - BytesPending < maxRequired)
328
Span<byte> output =
_memory
.Span;
358
if (
_memory
.Length - BytesPending < maxRequired)
363
Span<byte> output =
_memory
.Span;
403
if (
_memory
.Length - BytesPending < maxRequired)
408
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (26)
165
if (
_memory
.Length - BytesPending < maxRequired)
170
Span<byte> output =
_memory
.Span;
196
if (
_memory
.Length - BytesPending < maxRequired)
201
Span<byte> output =
_memory
.Span;
325
if (
_memory
.Length - BytesPending < maxRequired)
330
Span<byte> output =
_memory
.Span;
354
if (
_memory
.Length - BytesPending < maxRequired)
359
Span<byte> output =
_memory
.Span;
383
if (
_memory
.Length - BytesPending < maxRequired)
388
Span<byte> output =
_memory
.Span;
1364
if (
_memory
.Length - BytesPending < maxRequired)
1369
Span<byte> output =
_memory
.Span;
1398
if (
_memory
.Length - BytesPending < maxRequired)
1403
Span<byte> output =
_memory
.Span;
1435
if (
_memory
.Length - BytesPending < maxRequired)
1440
Span<byte> output =
_memory
.Span;
1471
if (
_memory
.Length - BytesPending < maxRequired)
1476
Span<byte> output =
_memory
.Span;
1510
if (
_memory
.Length - BytesPending < maxRequired)
1515
Span<byte> output =
_memory
.Span;
1559
if (
_memory
.Length - BytesPending < maxRequired)
1564
Span<byte> output =
_memory
.Span;
1611
if (
_memory
.Length - BytesPending < maxRequired)
1616
Span<byte> output =
_memory
.Span;
1662
if (
_memory
.Length - BytesPending < maxRequired)
1667
Span<byte> output =
_memory
.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (8)
302
if (
_memory
.Length - BytesPending < maxRequired)
307
Span<byte> output =
_memory
.Span;
332
if (
_memory
.Length - BytesPending < maxRequired)
337
Span<byte> output =
_memory
.Span;
367
if (
_memory
.Length - BytesPending < maxRequired)
372
Span<byte> output =
_memory
.Span;
412
if (
_memory
.Length - BytesPending < maxRequired)
417
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)
86
if (
_memory
.Length - BytesPending < maxRequired)
91
Span<byte> output =
_memory
.Span;
120
if (
_memory
.Length - BytesPending < maxRequired)
125
Span<byte> output =
_memory
.Span;
199
if (
_memory
.Length - BytesPending < maxRequired)
204
Span<byte> output =
_memory
.Span;
226
if (
_memory
.Length - BytesPending < maxRequired)
231
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)
175
if (
_memory
.Length - BytesPending < maxRequired)
180
Span<byte> output =
_memory
.Span;
263
if (
_memory
.Length - BytesPending < maxRequired)
268
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;