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)
500if (_memory.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator 505Span<byte> output = _memory.Span; 566if (_memory.Length - BytesPending < maxRequired) 571Span<byte> output = _memory.Span; 931if (_memory.Length - BytesPending < 1) // 1 end token 936Span<byte> output = _memory.Span; 1010if (_memory.Length - BytesPending < maxRequired) 1015Span<byte> output = _memory.Span; 1063if (_memory.Length == 0) 1082Debug.Assert(_memory.Length >= sizeHint); 1094if (_memory.Length < sizeHint) 1103Debug.Assert(_memory.Length == 0); 1112Debug.Assert(_memory.Length >= sizeHint); 1119if (_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)
68if (_memory.Length - BytesPending < maxRequired) 73Span<byte> output = _memory.Span; 99if (_memory.Length - BytesPending < maxRequired) 104Span<byte> output = _memory.Span; 141if (_memory.Length - BytesPending < maxRequired) 146Span<byte> output = _memory.Span; 172if (_memory.Length - BytesPending < maxRequired) 177Span<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)
82if (_memory.Length - BytesPending < maxRequired) 87Span<byte> output = _memory.Span; 116if (_memory.Length - BytesPending < maxRequired) 121Span<byte> output = _memory.Span; 195if (_memory.Length - BytesPending < maxRequired) 200Span<byte> output = _memory.Span; 222if (_memory.Length - BytesPending < maxRequired) 227Span<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.UnsignedNumber.cs (4)
61if (_memory.Length - BytesPending < maxRequired) 66Span<byte> output = _memory.Span; 85if (_memory.Length - BytesPending < maxRequired) 90Span<byte> output = _memory.Span;