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)
597if (_memory.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator 602Span<byte> output = _memory.Span; 676if (_memory.Length - BytesPending < maxRequired) 681Span<byte> output = _memory.Span; 1041if (_memory.Length - BytesPending < 1) // 1 end token 1046Span<byte> output = _memory.Span; 1122if (_memory.Length - BytesPending < maxRequired) 1127Span<byte> output = _memory.Span; 1175if (_memory.Length == 0) 1194Debug.Assert(_memory.Length >= sizeHint); 1206if (_memory.Length < sizeHint) 1215Debug.Assert(_memory.Length == 0); 1224Debug.Assert(_memory.Length >= sizeHint); 1231if (_memory.Length < sizeHint)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (8)
219if (_memory.Length - BytesPending < maxRequired) 224Span<byte> output = _memory.Span; 254if (_memory.Length - BytesPending < maxRequired) 259Span<byte> output = _memory.Span; 293if (_memory.Length - BytesPending < maxRequired) 298Span<byte> output = _memory.Span; 343if (_memory.Length - BytesPending < maxRequired) 348Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (8)
224if (_memory.Length - BytesPending < maxRequired) 229Span<byte> output = _memory.Span; 257if (_memory.Length - BytesPending < maxRequired) 262Span<byte> output = _memory.Span; 295if (_memory.Length - BytesPending < maxRequired) 300Span<byte> output = _memory.Span; 343if (_memory.Length - BytesPending < maxRequired) 348Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (8)
223if (_memory.Length - BytesPending < maxRequired) 228Span<byte> output = _memory.Span; 256if (_memory.Length - BytesPending < maxRequired) 261Span<byte> output = _memory.Span; 294if (_memory.Length - BytesPending < maxRequired) 299Span<byte> output = _memory.Span; 342if (_memory.Length - BytesPending < maxRequired) 347Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (8)
223if (_memory.Length - BytesPending < maxRequired) 228Span<byte> output = _memory.Span; 253if (_memory.Length - BytesPending < maxRequired) 258Span<byte> output = _memory.Span; 288if (_memory.Length - BytesPending < maxRequired) 293Span<byte> output = _memory.Span; 333if (_memory.Length - BytesPending < maxRequired) 338Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (8)
227if (_memory.Length - BytesPending < maxRequired) 232Span<byte> output = _memory.Span; 257if (_memory.Length - BytesPending < maxRequired) 262Span<byte> output = _memory.Span; 292if (_memory.Length - BytesPending < maxRequired) 297Span<byte> output = _memory.Span; 337if (_memory.Length - BytesPending < maxRequired) 342Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (8)
227if (_memory.Length - BytesPending < maxRequired) 232Span<byte> output = _memory.Span; 257if (_memory.Length - BytesPending < maxRequired) 262Span<byte> output = _memory.Span; 292if (_memory.Length - BytesPending < maxRequired) 297Span<byte> output = _memory.Span; 337if (_memory.Length - BytesPending < maxRequired) 342Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (8)
223if (_memory.Length - BytesPending < maxRequired) 228Span<byte> output = _memory.Span; 257if (_memory.Length - BytesPending < maxRequired) 262Span<byte> output = _memory.Span; 296if (_memory.Length - BytesPending < maxRequired) 301Span<byte> output = _memory.Span; 345if (_memory.Length - BytesPending < maxRequired) 350Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (8)
82if (_memory.Length - BytesPending < maxRequired) 87Span<byte> output = _memory.Span; 113if (_memory.Length - BytesPending < maxRequired) 118Span<byte> output = _memory.Span; 155if (_memory.Length - BytesPending < maxRequired) 160Span<byte> output = _memory.Span; 186if (_memory.Length - BytesPending < maxRequired) 191Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (10)
346if (_memory.Length - BytesPending < maxRequired) 351Span<byte> output = _memory.Span; 376if (_memory.Length - BytesPending < maxRequired) 381Span<byte> output = _memory.Span; 409if (_memory.Length - BytesPending < maxRequired) 414Span<byte> output = _memory.Span; 439if (_memory.Length - BytesPending < maxRequired) 444Span<byte> output = _memory.Span; 484if (_memory.Length - BytesPending < maxRequired) 489Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (8)
299if (_memory.Length - BytesPending < maxRequired) 304Span<byte> output = _memory.Span; 329if (_memory.Length - BytesPending < maxRequired) 334Span<byte> output = _memory.Span; 364if (_memory.Length - BytesPending < maxRequired) 369Span<byte> output = _memory.Span; 409if (_memory.Length - BytesPending < maxRequired) 414Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (26)
168if (_memory.Length - BytesPending < maxRequired) 173Span<byte> output = _memory.Span; 199if (_memory.Length - BytesPending < maxRequired) 204Span<byte> output = _memory.Span; 328if (_memory.Length - BytesPending < maxRequired) 333Span<byte> output = _memory.Span; 357if (_memory.Length - BytesPending < maxRequired) 362Span<byte> output = _memory.Span; 386if (_memory.Length - BytesPending < maxRequired) 391Span<byte> output = _memory.Span; 1379if (_memory.Length - BytesPending < maxRequired) 1384Span<byte> output = _memory.Span; 1413if (_memory.Length - BytesPending < maxRequired) 1418Span<byte> output = _memory.Span; 1450if (_memory.Length - BytesPending < maxRequired) 1455Span<byte> output = _memory.Span; 1486if (_memory.Length - BytesPending < maxRequired) 1491Span<byte> output = _memory.Span; 1525if (_memory.Length - BytesPending < maxRequired) 1530Span<byte> output = _memory.Span; 1574if (_memory.Length - BytesPending < maxRequired) 1579Span<byte> output = _memory.Span; 1626if (_memory.Length - BytesPending < maxRequired) 1631Span<byte> output = _memory.Span; 1677if (_memory.Length - BytesPending < maxRequired) 1682Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (8)
308if (_memory.Length - BytesPending < maxRequired) 313Span<byte> output = _memory.Span; 338if (_memory.Length - BytesPending < maxRequired) 343Span<byte> output = _memory.Span; 373if (_memory.Length - BytesPending < maxRequired) 378Span<byte> output = _memory.Span; 418if (_memory.Length - BytesPending < maxRequired) 423Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (4)
69if (_memory.Length - BytesPending < maxRequired) 74Span<byte> output = _memory.Span; 109if (_memory.Length - BytesPending < maxRequired) 114Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (8)
89if (_memory.Length - BytesPending < maxRequired) 94Span<byte> output = _memory.Span; 123if (_memory.Length - BytesPending < maxRequired) 128Span<byte> output = _memory.Span; 202if (_memory.Length - BytesPending < maxRequired) 207Span<byte> output = _memory.Span; 229if (_memory.Length - BytesPending < maxRequired) 234Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (4)
46if (_memory.Length - BytesPending < maxRequired) 51Span<byte> output = _memory.Span; 74if (_memory.Length - BytesPending < maxRequired) 79Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (4)
47if (_memory.Length - BytesPending < maxRequired) 52Span<byte> output = _memory.Span; 75if (_memory.Length - BytesPending < maxRequired) 80Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (4)
46if (_memory.Length - BytesPending < maxRequired) 51Span<byte> output = _memory.Span; 70if (_memory.Length - BytesPending < maxRequired) 75Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (4)
50if (_memory.Length - BytesPending < maxRequired) 55Span<byte> output = _memory.Span; 74if (_memory.Length - BytesPending < maxRequired) 79Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (4)
50if (_memory.Length - BytesPending < maxRequired) 55Span<byte> output = _memory.Span; 74if (_memory.Length - BytesPending < maxRequired) 79Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (4)
51if (_memory.Length - BytesPending < maxRequired) 56Span<byte> output = _memory.Span; 76if (_memory.Length - BytesPending < maxRequired) 81Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (4)
46if (_memory.Length - BytesPending < maxRequired) 51Span<byte> output = _memory.Span; 75if (_memory.Length - BytesPending < maxRequired) 80Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (4)
70if (_memory.Length - BytesPending < maxRequired) 75Span<byte> output = _memory.Span; 94if (_memory.Length - BytesPending < maxRequired) 99Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
178if (_memory.Length - BytesPending < maxRequired) 183Span<byte> output = _memory.Span; 266if (_memory.Length - BytesPending < maxRequired) 271Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (4)
59if (_memory.Length - BytesPending < maxRequired) 64Span<byte> output = _memory.Span; 83if (_memory.Length - BytesPending < maxRequired) 88Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (8)
124if (_memory.Length - BytesPending < maxRequired) 129Span<byte> output = _memory.Span; 154if (_memory.Length - BytesPending < maxRequired) 159Span<byte> output = _memory.Span; 270if (_memory.Length - BytesPending < maxRequired) 275Span<byte> output = _memory.Span; 300if (_memory.Length - BytesPending < maxRequired) 305Span<byte> output = _memory.Span;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (12)
170if (_memory.Length - BytesPending < requiredBytes) 175Span<byte> output = _memory.Span; 336if (_memory.Length - BytesPending < requiredBytes) 341Span<byte> output = _memory.Span; 449if (_memory.Length - BytesPending < requiredBytes) 454Span<byte> output = _memory.Span; 480if (_memory.Length - BytesPending < bytesRequired) 485Span<byte> output = _memory.Span; 509if (_memory.Length - BytesPending < bytesRequired) 514Span<byte> output = _memory.Span; 526if (_memory.Length == BytesPending) 531_memory.Span[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (4)
61if (_memory.Length - BytesPending < maxRequired) 66Span<byte> output = _memory.Span; 85if (_memory.Length - BytesPending < maxRequired) 90Span<byte> output = _memory.Span;