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