541 writes to BytesPending
System.Text.Json (541)
System\Text\Json\Writer\Utf8JsonWriter.cs (16)
364BytesPending = default; 413BytesPending = 0; 433BytesPending = 0; 522BytesPending = 0; 538BytesPending = 0; 599output[BytesPending++] = JsonConstants.ListSeparator; 601output[BytesPending++] = token; 679output[BytesPending++] = JsonConstants.ListSeparator; 686BytesPending += indent; 689output[BytesPending++] = token; 1035output[BytesPending++] = token; 1120BytesPending += indent; 1122output[BytesPending++] = token; 1133output[BytesPending++] = JsonConstants.CarriageReturn; 1135output[BytesPending++] = JsonConstants.LineFeed; 1190BytesPending = 0;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (30)
225output[BytesPending++] = JsonConstants.ListSeparator; 227output[BytesPending++] = JsonConstants.Quote; 231output[BytesPending++] = JsonConstants.Quote; 232output[BytesPending++] = JsonConstants.KeyValueSeparator; 234output[BytesPending++] = JsonConstants.Quote; 238output[BytesPending++] = JsonConstants.Quote; 260output[BytesPending++] = JsonConstants.ListSeparator; 262output[BytesPending++] = JsonConstants.Quote; 265BytesPending += escapedPropertyName.Length; 267output[BytesPending++] = JsonConstants.Quote; 268output[BytesPending++] = JsonConstants.KeyValueSeparator; 270output[BytesPending++] = JsonConstants.Quote; 274output[BytesPending++] = JsonConstants.Quote; 299output[BytesPending++] = JsonConstants.ListSeparator; 310BytesPending += indent; 312output[BytesPending++] = JsonConstants.Quote; 316output[BytesPending++] = JsonConstants.Quote; 317output[BytesPending++] = JsonConstants.KeyValueSeparator; 318output[BytesPending++] = JsonConstants.Space; 320output[BytesPending++] = JsonConstants.Quote; 324output[BytesPending++] = JsonConstants.Quote; 349output[BytesPending++] = JsonConstants.ListSeparator; 360BytesPending += indent; 362output[BytesPending++] = JsonConstants.Quote; 365BytesPending += escapedPropertyName.Length; 367output[BytesPending++] = JsonConstants.Quote; 368output[BytesPending++] = JsonConstants.KeyValueSeparator; 369output[BytesPending++] = JsonConstants.Space; 371output[BytesPending++] = JsonConstants.Quote; 375output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (34)
230output[BytesPending++] = JsonConstants.ListSeparator; 232output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.Quote; 237output[BytesPending++] = JsonConstants.KeyValueSeparator; 239output[BytesPending++] = JsonConstants.Quote; 242BytesPending += bytesWritten; 244output[BytesPending++] = JsonConstants.Quote; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 268BytesPending += escapedPropertyName.Length; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 273output[BytesPending++] = JsonConstants.Quote; 276BytesPending += bytesWritten; 278output[BytesPending++] = JsonConstants.Quote; 301output[BytesPending++] = JsonConstants.ListSeparator; 312BytesPending += indent; 314output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.Quote; 319output[BytesPending++] = JsonConstants.KeyValueSeparator; 320output[BytesPending++] = JsonConstants.Space; 322output[BytesPending++] = JsonConstants.Quote; 325BytesPending += bytesWritten; 327output[BytesPending++] = JsonConstants.Quote; 349output[BytesPending++] = JsonConstants.ListSeparator; 360BytesPending += indent; 362output[BytesPending++] = JsonConstants.Quote; 365BytesPending += escapedPropertyName.Length; 367output[BytesPending++] = JsonConstants.Quote; 368output[BytesPending++] = JsonConstants.KeyValueSeparator; 369output[BytesPending++] = JsonConstants.Space; 371output[BytesPending++] = JsonConstants.Quote; 374BytesPending += bytesWritten; 376output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (34)
229output[BytesPending++] = JsonConstants.ListSeparator; 231output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.KeyValueSeparator; 238output[BytesPending++] = JsonConstants.Quote; 241BytesPending += bytesWritten; 243output[BytesPending++] = JsonConstants.Quote; 262output[BytesPending++] = JsonConstants.ListSeparator; 264output[BytesPending++] = JsonConstants.Quote; 267BytesPending += escapedPropertyName.Length; 269output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.KeyValueSeparator; 272output[BytesPending++] = JsonConstants.Quote; 275BytesPending += bytesWritten; 277output[BytesPending++] = JsonConstants.Quote; 300output[BytesPending++] = JsonConstants.ListSeparator; 311BytesPending += indent; 313output[BytesPending++] = JsonConstants.Quote; 317output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.KeyValueSeparator; 319output[BytesPending++] = JsonConstants.Space; 321output[BytesPending++] = JsonConstants.Quote; 324BytesPending += bytesWritten; 326output[BytesPending++] = JsonConstants.Quote; 348output[BytesPending++] = JsonConstants.ListSeparator; 359BytesPending += indent; 361output[BytesPending++] = JsonConstants.Quote; 364BytesPending += escapedPropertyName.Length; 366output[BytesPending++] = JsonConstants.Quote; 367output[BytesPending++] = JsonConstants.KeyValueSeparator; 368output[BytesPending++] = JsonConstants.Space; 370output[BytesPending++] = JsonConstants.Quote; 373BytesPending += bytesWritten; 375output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (26)
229output[BytesPending++] = JsonConstants.ListSeparator; 231output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.KeyValueSeparator; 240BytesPending += bytesWritten; 259output[BytesPending++] = JsonConstants.ListSeparator; 261output[BytesPending++] = JsonConstants.Quote; 264BytesPending += escapedPropertyName.Length; 266output[BytesPending++] = JsonConstants.Quote; 267output[BytesPending++] = JsonConstants.KeyValueSeparator; 271BytesPending += bytesWritten; 294output[BytesPending++] = JsonConstants.ListSeparator; 305BytesPending += indent; 307output[BytesPending++] = JsonConstants.Quote; 311output[BytesPending++] = JsonConstants.Quote; 312output[BytesPending++] = JsonConstants.KeyValueSeparator; 313output[BytesPending++] = JsonConstants.Space; 317BytesPending += bytesWritten; 339output[BytesPending++] = JsonConstants.ListSeparator; 350BytesPending += indent; 352output[BytesPending++] = JsonConstants.Quote; 355BytesPending += escapedPropertyName.Length; 357output[BytesPending++] = JsonConstants.Quote; 358output[BytesPending++] = JsonConstants.KeyValueSeparator; 359output[BytesPending++] = JsonConstants.Space; 363BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (26)
233output[BytesPending++] = JsonConstants.ListSeparator; 235output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.Quote; 240output[BytesPending++] = JsonConstants.KeyValueSeparator; 244BytesPending += bytesWritten; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 268BytesPending += escapedPropertyName.Length; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 275BytesPending += bytesWritten; 298output[BytesPending++] = JsonConstants.ListSeparator; 309BytesPending += indent; 311output[BytesPending++] = JsonConstants.Quote; 315output[BytesPending++] = JsonConstants.Quote; 316output[BytesPending++] = JsonConstants.KeyValueSeparator; 317output[BytesPending++] = JsonConstants.Space; 321BytesPending += bytesWritten; 343output[BytesPending++] = JsonConstants.ListSeparator; 354BytesPending += indent; 356output[BytesPending++] = JsonConstants.Quote; 359BytesPending += escapedPropertyName.Length; 361output[BytesPending++] = JsonConstants.Quote; 362output[BytesPending++] = JsonConstants.KeyValueSeparator; 363output[BytesPending++] = JsonConstants.Space; 367BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (26)
233output[BytesPending++] = JsonConstants.ListSeparator; 235output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.Quote; 240output[BytesPending++] = JsonConstants.KeyValueSeparator; 244BytesPending += bytesWritten; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 268BytesPending += escapedPropertyName.Length; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 275BytesPending += bytesWritten; 298output[BytesPending++] = JsonConstants.ListSeparator; 309BytesPending += indent; 311output[BytesPending++] = JsonConstants.Quote; 315output[BytesPending++] = JsonConstants.Quote; 316output[BytesPending++] = JsonConstants.KeyValueSeparator; 317output[BytesPending++] = JsonConstants.Space; 321BytesPending += bytesWritten; 343output[BytesPending++] = JsonConstants.ListSeparator; 354BytesPending += indent; 356output[BytesPending++] = JsonConstants.Quote; 359BytesPending += escapedPropertyName.Length; 361output[BytesPending++] = JsonConstants.Quote; 362output[BytesPending++] = JsonConstants.KeyValueSeparator; 363output[BytesPending++] = JsonConstants.Space; 367BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (34)
229output[BytesPending++] = JsonConstants.ListSeparator; 231output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.Quote; 236output[BytesPending++] = JsonConstants.KeyValueSeparator; 238output[BytesPending++] = JsonConstants.Quote; 242BytesPending += bytesWritten; 244output[BytesPending++] = JsonConstants.Quote; 263output[BytesPending++] = JsonConstants.ListSeparator; 265output[BytesPending++] = JsonConstants.Quote; 268BytesPending += escapedPropertyName.Length; 270output[BytesPending++] = JsonConstants.Quote; 271output[BytesPending++] = JsonConstants.KeyValueSeparator; 273output[BytesPending++] = JsonConstants.Quote; 277BytesPending += bytesWritten; 279output[BytesPending++] = JsonConstants.Quote; 302output[BytesPending++] = JsonConstants.ListSeparator; 313BytesPending += indent; 315output[BytesPending++] = JsonConstants.Quote; 319output[BytesPending++] = JsonConstants.Quote; 320output[BytesPending++] = JsonConstants.KeyValueSeparator; 321output[BytesPending++] = JsonConstants.Space; 323output[BytesPending++] = JsonConstants.Quote; 327BytesPending += bytesWritten; 329output[BytesPending++] = JsonConstants.Quote; 351output[BytesPending++] = JsonConstants.ListSeparator; 362BytesPending += indent; 364output[BytesPending++] = JsonConstants.Quote; 367BytesPending += escapedPropertyName.Length; 369output[BytesPending++] = JsonConstants.Quote; 370output[BytesPending++] = JsonConstants.KeyValueSeparator; 371output[BytesPending++] = JsonConstants.Space; 373output[BytesPending++] = JsonConstants.Quote; 377BytesPending += bytesWritten; 379output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (27)
91output[BytesPending++] = JsonConstants.ListSeparator; 93output[BytesPending++] = JsonConstants.Quote; 96BytesPending += escapedPropertyName.Length; 98output[BytesPending++] = JsonConstants.Quote; 99output[BytesPending++] = JsonConstants.KeyValueSeparator; 100output[BytesPending++] = token; 122output[BytesPending++] = JsonConstants.ListSeparator; 133BytesPending += indent; 135output[BytesPending++] = JsonConstants.Quote; 138BytesPending += escapedPropertyName.Length; 140output[BytesPending++] = JsonConstants.Quote; 142output[BytesPending++] = JsonConstants.KeyValueSeparator; 143output[BytesPending++] = JsonConstants.Space; 144output[BytesPending++] = token; 164output[BytesPending++] = JsonConstants.ListSeparator; 166output[BytesPending++] = JsonConstants.Quote; 170output[BytesPending++] = JsonConstants.Quote; 171output[BytesPending++] = JsonConstants.KeyValueSeparator; 172output[BytesPending++] = token; 195output[BytesPending++] = JsonConstants.ListSeparator; 206BytesPending += indent; 208output[BytesPending++] = JsonConstants.Quote; 212output[BytesPending++] = JsonConstants.Quote; 214output[BytesPending++] = JsonConstants.KeyValueSeparator; 215output[BytesPending++] = JsonConstants.Space; 216output[BytesPending++] = token; 224BytesPending += written;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (29)
349output[BytesPending++] = JsonConstants.ListSeparator; 351output[BytesPending++] = JsonConstants.Quote; 355output[BytesPending++] = JsonConstants.Quote; 356output[BytesPending++] = JsonConstants.KeyValueSeparator; 359BytesPending += value.Length; 379output[BytesPending++] = JsonConstants.ListSeparator; 381output[BytesPending++] = JsonConstants.Quote; 384BytesPending += escapedPropertyName.Length; 386output[BytesPending++] = JsonConstants.Quote; 387output[BytesPending++] = JsonConstants.KeyValueSeparator; 390BytesPending += value.Length; 411output[BytesPending++] = JsonConstants.ListSeparator; 415BytesPending += escapedPropertyNameSection.Length; 418BytesPending += value.Length; 442output[BytesPending++] = JsonConstants.ListSeparator; 453BytesPending += indent; 455output[BytesPending++] = JsonConstants.Quote; 459output[BytesPending++] = JsonConstants.Quote; 460output[BytesPending++] = JsonConstants.KeyValueSeparator; 461output[BytesPending++] = JsonConstants.Space; 464BytesPending += value.Length; 487output[BytesPending++] = JsonConstants.ListSeparator; 498BytesPending += indent; 500output[BytesPending++] = JsonConstants.Quote; 503BytesPending += escapedPropertyName.Length; 505output[BytesPending++] = JsonConstants.Quote; 506output[BytesPending++] = JsonConstants.KeyValueSeparator; 507output[BytesPending++] = JsonConstants.Space; 510BytesPending += value.Length;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (26)
302output[BytesPending++] = JsonConstants.ListSeparator; 304output[BytesPending++] = JsonConstants.Quote; 308output[BytesPending++] = JsonConstants.Quote; 309output[BytesPending++] = JsonConstants.KeyValueSeparator; 313BytesPending += bytesWritten; 332output[BytesPending++] = JsonConstants.ListSeparator; 334output[BytesPending++] = JsonConstants.Quote; 337BytesPending += escapedPropertyName.Length; 339output[BytesPending++] = JsonConstants.Quote; 340output[BytesPending++] = JsonConstants.KeyValueSeparator; 344BytesPending += bytesWritten; 367output[BytesPending++] = JsonConstants.ListSeparator; 378BytesPending += indent; 380output[BytesPending++] = JsonConstants.Quote; 384output[BytesPending++] = JsonConstants.Quote; 385output[BytesPending++] = JsonConstants.KeyValueSeparator; 386output[BytesPending++] = JsonConstants.Space; 390BytesPending += bytesWritten; 412output[BytesPending++] = JsonConstants.ListSeparator; 423BytesPending += indent; 425output[BytesPending++] = JsonConstants.Quote; 428BytesPending += escapedPropertyName.Length; 430output[BytesPending++] = JsonConstants.Quote; 431output[BytesPending++] = JsonConstants.KeyValueSeparator; 432output[BytesPending++] = JsonConstants.Space; 436BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (88)
174output[BytesPending++] = JsonConstants.ListSeparator; 176output[BytesPending++] = JsonConstants.Quote; 180output[BytesPending++] = JsonConstants.Quote; 181output[BytesPending++] = JsonConstants.KeyValueSeparator; 205output[BytesPending++] = JsonConstants.ListSeparator; 214BytesPending += indent; 216output[BytesPending++] = JsonConstants.Quote; 220output[BytesPending++] = JsonConstants.Quote; 221output[BytesPending++] = JsonConstants.KeyValueSeparator; 222output[BytesPending++] = JsonConstants.Space; 334output[BytesPending++] = JsonConstants.ListSeparator; 336output[BytesPending++] = JsonConstants.Quote; 339BytesPending += escapedPropertyName.Length; 341output[BytesPending++] = JsonConstants.Quote; 342output[BytesPending++] = JsonConstants.KeyValueSeparator; 363output[BytesPending++] = JsonConstants.ListSeparator; 367BytesPending += escapedPropertyNameSection.Length; 392output[BytesPending++] = JsonConstants.ListSeparator; 403BytesPending += indent; 405output[BytesPending++] = JsonConstants.Quote; 408BytesPending += escapedPropertyName.Length; 410output[BytesPending++] = JsonConstants.Quote; 411output[BytesPending++] = JsonConstants.KeyValueSeparator; 412output[BytesPending++] = JsonConstants.Space; 1373output[BytesPending++] = JsonConstants.ListSeparator; 1375output[BytesPending++] = JsonConstants.Quote; 1379output[BytesPending++] = JsonConstants.Quote; 1380output[BytesPending++] = JsonConstants.KeyValueSeparator; 1382output[BytesPending++] = JsonConstants.Quote; 1386output[BytesPending++] = JsonConstants.Quote; 1407output[BytesPending++] = JsonConstants.ListSeparator; 1409output[BytesPending++] = JsonConstants.Quote; 1412BytesPending += escapedPropertyName.Length; 1414output[BytesPending++] = JsonConstants.Quote; 1415output[BytesPending++] = JsonConstants.KeyValueSeparator; 1417output[BytesPending++] = JsonConstants.Quote; 1420BytesPending += escapedValue.Length; 1422output[BytesPending++] = JsonConstants.Quote; 1444output[BytesPending++] = JsonConstants.ListSeparator; 1446output[BytesPending++] = JsonConstants.Quote; 1450output[BytesPending++] = JsonConstants.Quote; 1451output[BytesPending++] = JsonConstants.KeyValueSeparator; 1453output[BytesPending++] = JsonConstants.Quote; 1456BytesPending += escapedValue.Length; 1458output[BytesPending++] = JsonConstants.Quote; 1480output[BytesPending++] = JsonConstants.ListSeparator; 1482output[BytesPending++] = JsonConstants.Quote; 1485BytesPending += escapedPropertyName.Length; 1487output[BytesPending++] = JsonConstants.Quote; 1488output[BytesPending++] = JsonConstants.KeyValueSeparator; 1490output[BytesPending++] = JsonConstants.Quote; 1494output[BytesPending++] = JsonConstants.Quote; 1519output[BytesPending++] = JsonConstants.ListSeparator; 1530BytesPending += indent; 1532output[BytesPending++] = JsonConstants.Quote; 1536output[BytesPending++] = JsonConstants.Quote; 1537output[BytesPending++] = JsonConstants.KeyValueSeparator; 1538output[BytesPending++] = JsonConstants.Space; 1540output[BytesPending++] = JsonConstants.Quote; 1544output[BytesPending++] = JsonConstants.Quote; 1568output[BytesPending++] = JsonConstants.ListSeparator; 1579BytesPending += indent; 1581output[BytesPending++] = JsonConstants.Quote; 1584BytesPending += escapedPropertyName.Length; 1586output[BytesPending++] = JsonConstants.Quote; 1587output[BytesPending++] = JsonConstants.KeyValueSeparator; 1588output[BytesPending++] = JsonConstants.Space; 1590output[BytesPending++] = JsonConstants.Quote; 1593BytesPending += escapedValue.Length; 1595output[BytesPending++] = JsonConstants.Quote; 1620output[BytesPending++] = JsonConstants.ListSeparator; 1631BytesPending += indent; 1633output[BytesPending++] = JsonConstants.Quote; 1637output[BytesPending++] = JsonConstants.Quote; 1638output[BytesPending++] = JsonConstants.KeyValueSeparator; 1639output[BytesPending++] = JsonConstants.Space; 1641output[BytesPending++] = JsonConstants.Quote; 1644BytesPending += escapedValue.Length; 1646output[BytesPending++] = JsonConstants.Quote; 1671output[BytesPending++] = JsonConstants.ListSeparator; 1682BytesPending += indent; 1684output[BytesPending++] = JsonConstants.Quote; 1687BytesPending += escapedPropertyName.Length; 1689output[BytesPending++] = JsonConstants.Quote; 1690output[BytesPending++] = JsonConstants.KeyValueSeparator; 1691output[BytesPending++] = JsonConstants.Space; 1693output[BytesPending++] = JsonConstants.Quote; 1697output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (26)
311output[BytesPending++] = JsonConstants.ListSeparator; 313output[BytesPending++] = JsonConstants.Quote; 317output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.KeyValueSeparator; 322BytesPending += bytesWritten; 341output[BytesPending++] = JsonConstants.ListSeparator; 343output[BytesPending++] = JsonConstants.Quote; 346BytesPending += escapedPropertyName.Length; 348output[BytesPending++] = JsonConstants.Quote; 349output[BytesPending++] = JsonConstants.KeyValueSeparator; 353BytesPending += bytesWritten; 376output[BytesPending++] = JsonConstants.ListSeparator; 387BytesPending += indent; 389output[BytesPending++] = JsonConstants.Quote; 393output[BytesPending++] = JsonConstants.Quote; 394output[BytesPending++] = JsonConstants.KeyValueSeparator; 395output[BytesPending++] = JsonConstants.Space; 399BytesPending += bytesWritten; 421output[BytesPending++] = JsonConstants.ListSeparator; 432BytesPending += indent; 434output[BytesPending++] = JsonConstants.Quote; 437BytesPending += escapedPropertyName.Length; 439output[BytesPending++] = JsonConstants.Quote; 440output[BytesPending++] = JsonConstants.KeyValueSeparator; 441output[BytesPending++] = JsonConstants.Space; 445BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (7)
78output[BytesPending++] = JsonConstants.ListSeparator; 80output[BytesPending++] = JsonConstants.Quote; 84output[BytesPending++] = JsonConstants.Quote; 118output[BytesPending++] = JsonConstants.ListSeparator; 128BytesPending += indent; 131output[BytesPending++] = JsonConstants.Quote; 135output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (22)
93output[BytesPending++] = JsonConstants.Slash; 94output[BytesPending++] = JsonConstants.Asterisk; 103BytesPending += written; 105output[BytesPending++] = JsonConstants.Asterisk; 106output[BytesPending++] = JsonConstants.Slash; 131BytesPending += indent; 134output[BytesPending++] = JsonConstants.Slash; 135output[BytesPending++] = JsonConstants.Asterisk; 144BytesPending += written; 146output[BytesPending++] = JsonConstants.Asterisk; 147output[BytesPending++] = JsonConstants.Slash; 206output[BytesPending++] = JsonConstants.Slash; 207output[BytesPending++] = JsonConstants.Asterisk; 210BytesPending += utf8Value.Length; 212output[BytesPending++] = JsonConstants.Asterisk; 213output[BytesPending++] = JsonConstants.Slash; 238BytesPending += indent; 241output[BytesPending++] = JsonConstants.Slash; 242output[BytesPending++] = JsonConstants.Asterisk; 245BytesPending += utf8Value.Length; 247output[BytesPending++] = JsonConstants.Asterisk; 248output[BytesPending++] = JsonConstants.Slash;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (9)
55output[BytesPending++] = JsonConstants.ListSeparator; 58output[BytesPending++] = JsonConstants.Quote; 61BytesPending += bytesWritten; 63output[BytesPending++] = JsonConstants.Quote; 83output[BytesPending++] = JsonConstants.ListSeparator; 93BytesPending += indent; 96output[BytesPending++] = JsonConstants.Quote; 99BytesPending += bytesWritten; 101output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (9)
56output[BytesPending++] = JsonConstants.ListSeparator; 59output[BytesPending++] = JsonConstants.Quote; 62BytesPending += bytesWritten; 64output[BytesPending++] = JsonConstants.Quote; 84output[BytesPending++] = JsonConstants.ListSeparator; 94BytesPending += indent; 97output[BytesPending++] = JsonConstants.Quote; 100BytesPending += bytesWritten; 102output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (5)
55output[BytesPending++] = JsonConstants.ListSeparator; 60BytesPending += bytesWritten; 79output[BytesPending++] = JsonConstants.ListSeparator; 89BytesPending += indent; 94BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (5)
59output[BytesPending++] = JsonConstants.ListSeparator; 64BytesPending += bytesWritten; 83output[BytesPending++] = JsonConstants.ListSeparator; 93BytesPending += indent; 98BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (5)
59output[BytesPending++] = JsonConstants.ListSeparator; 64BytesPending += bytesWritten; 83output[BytesPending++] = JsonConstants.ListSeparator; 93BytesPending += indent; 98BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (5)
60output[BytesPending++] = JsonConstants.ListSeparator; 64BytesPending += utf8Value.Length; 85output[BytesPending++] = JsonConstants.ListSeparator; 95BytesPending += indent; 99BytesPending += utf8Value.Length;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (9)
55output[BytesPending++] = JsonConstants.ListSeparator; 58output[BytesPending++] = JsonConstants.Quote; 62BytesPending += bytesWritten; 64output[BytesPending++] = JsonConstants.Quote; 84output[BytesPending++] = JsonConstants.ListSeparator; 94BytesPending += indent; 97output[BytesPending++] = JsonConstants.Quote; 101BytesPending += bytesWritten; 103output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (1)
134BytesPending += written;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (5)
79output[BytesPending++] = JsonConstants.ListSeparator; 83BytesPending += utf8Value.Length; 103output[BytesPending++] = JsonConstants.ListSeparator; 113BytesPending += indent; 117BytesPending += utf8Value.Length;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
184output[BytesPending++] = JsonConstants.ListSeparator; 188BytesPending += len; 272output[BytesPending++] = JsonConstants.ListSeparator; 276BytesPending += len;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (5)
68output[BytesPending++] = JsonConstants.ListSeparator; 73BytesPending += bytesWritten; 92output[BytesPending++] = JsonConstants.ListSeparator; 102BytesPending += indent; 107BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (16)
133output[BytesPending++] = JsonConstants.ListSeparator; 135output[BytesPending++] = JsonConstants.Quote; 139output[BytesPending++] = JsonConstants.Quote; 163output[BytesPending++] = JsonConstants.ListSeparator; 173BytesPending += indent; 176output[BytesPending++] = JsonConstants.Quote; 180output[BytesPending++] = JsonConstants.Quote; 279output[BytesPending++] = JsonConstants.ListSeparator; 281output[BytesPending++] = JsonConstants.Quote; 284BytesPending += escapedValue.Length; 286output[BytesPending++] = JsonConstants.Quote; 309output[BytesPending++] = JsonConstants.ListSeparator; 319BytesPending += indent; 322output[BytesPending++] = JsonConstants.Quote; 325BytesPending += escapedValue.Length; 327output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (7)
344BytesPending += escapedValue.Length; 489output[BytesPending++] = JsonConstants.ListSeparator; 499BytesPending += indent; 502output[BytesPending++] = JsonConstants.Quote; 518output[BytesPending++] = JsonConstants.ListSeparator; 521output[BytesPending++] = JsonConstants.Quote; 531_memory.Span[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (5)
70output[BytesPending++] = JsonConstants.ListSeparator; 75BytesPending += bytesWritten; 94output[BytesPending++] = JsonConstants.ListSeparator; 104BytesPending += indent; 109BytesPending += bytesWritten;
269 references to BytesPending
System.Text.Json (269)
System\Text\Json\Serialization\JsonConverter.cs (1)
196return state.FlushThreshold > 0 && pipeWriter.UnflushedBytes > state.FlushThreshold - writer.BytesPending;
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (4)
115OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted + writer.BytesPending); 227Debug.Assert(writer.BytesPending == 0); 279OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted + writer.BytesPending); 328Debug.Assert(writer.BytesPending == 0);
System\Text\Json\Writer\Utf8JsonWriter.cs (22)
410if (BytesPending != 0) 412_arrayBufferWriter.Advance(BytesPending); 429if (BytesPending != 0) 431_output.Advance(BytesPending); 432BytesCommitted += BytesPending; 519if (BytesPending != 0) 521_arrayBufferWriter.Advance(BytesPending); 534if (BytesPending != 0) 536_output.Advance(BytesPending); 537BytesCommitted += BytesPending; 591if (_memory.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator 670if (_memory.Length - BytesPending < maxRequired) 685WriteIndentation(output.Slice(BytesPending), indent); 1029if (_memory.Length - BytesPending < 1) // 1 end token 1110if (_memory.Length - BytesPending < maxRequired) 1119WriteIndentation(output.Slice(BytesPending), indent); 1171Debug.Assert(BytesPending != 0); 1177int needed = BytesPending + sizeHint; 1188_output.Advance(BytesPending); 1189BytesCommitted += BytesPending; 1204Debug.Assert(BytesPending == 0); 1247private string DebuggerDisplay => $"BytesCommitted = {BytesCommitted} BytesPending = {BytesPending} CurrentDepth = {CurrentDepth}";
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (8)
216if (_memory.Length - BytesPending < maxRequired) 251if (_memory.Length - BytesPending < maxRequired) 264escapedPropertyName.CopyTo(output.Slice(BytesPending)); 290if (_memory.Length - BytesPending < maxRequired) 309WriteIndentation(output.Slice(BytesPending), indent); 340if (_memory.Length - BytesPending < maxRequired) 359WriteIndentation(output.Slice(BytesPending), indent); 364escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (12)
221if (_memory.Length - BytesPending < maxRequired) 241JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 254if (_memory.Length - BytesPending < maxRequired) 267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 275JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 292if (_memory.Length - BytesPending < maxRequired) 311WriteIndentation(output.Slice(BytesPending), indent); 324JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 340if (_memory.Length - BytesPending < maxRequired) 359WriteIndentation(output.Slice(BytesPending), indent); 364escapedPropertyName.CopyTo(output.Slice(BytesPending)); 373JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (12)
220if (_memory.Length - BytesPending < maxRequired) 240JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 253if (_memory.Length - BytesPending < maxRequired) 266escapedPropertyName.CopyTo(output.Slice(BytesPending)); 274JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 291if (_memory.Length - BytesPending < maxRequired) 310WriteIndentation(output.Slice(BytesPending), indent); 323JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 339if (_memory.Length - BytesPending < maxRequired) 358WriteIndentation(output.Slice(BytesPending), indent); 363escapedPropertyName.CopyTo(output.Slice(BytesPending)); 372JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (12)
220if (_memory.Length - BytesPending < maxRequired) 238bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 250if (_memory.Length - BytesPending < maxRequired) 263escapedPropertyName.CopyTo(output.Slice(BytesPending)); 269bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 285if (_memory.Length - BytesPending < maxRequired) 304WriteIndentation(output.Slice(BytesPending), indent); 315bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 330if (_memory.Length - BytesPending < maxRequired) 349WriteIndentation(output.Slice(BytesPending), indent); 354escapedPropertyName.CopyTo(output.Slice(BytesPending)); 361bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (12)
224if (_memory.Length - BytesPending < maxRequired) 242bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 254if (_memory.Length - BytesPending < maxRequired) 267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 273bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 289if (_memory.Length - BytesPending < maxRequired) 308WriteIndentation(output.Slice(BytesPending), indent); 319bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 334if (_memory.Length - BytesPending < maxRequired) 353WriteIndentation(output.Slice(BytesPending), indent); 358escapedPropertyName.CopyTo(output.Slice(BytesPending)); 365bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (12)
224if (_memory.Length - BytesPending < maxRequired) 242bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 254if (_memory.Length - BytesPending < maxRequired) 267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 273bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 289if (_memory.Length - BytesPending < maxRequired) 308WriteIndentation(output.Slice(BytesPending), indent); 319bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 334if (_memory.Length - BytesPending < maxRequired) 353WriteIndentation(output.Slice(BytesPending), indent); 358escapedPropertyName.CopyTo(output.Slice(BytesPending)); 365bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (12)
220if (_memory.Length - BytesPending < maxRequired) 240bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 254if (_memory.Length - BytesPending < maxRequired) 267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 275bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 293if (_memory.Length - BytesPending < maxRequired) 312WriteIndentation(output.Slice(BytesPending), indent); 325bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 342if (_memory.Length - BytesPending < maxRequired) 361WriteIndentation(output.Slice(BytesPending), indent); 366escapedPropertyName.CopyTo(output.Slice(BytesPending)); 375bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (9)
82if (_memory.Length - BytesPending < maxRequired) 95escapedPropertyName.CopyTo(output.Slice(BytesPending)); 113if (_memory.Length - BytesPending < maxRequired) 132WriteIndentation(output.Slice(BytesPending), indent); 137escapedPropertyName.CopyTo(output.Slice(BytesPending)); 155if (_memory.Length - BytesPending < maxRequired) 186if (_memory.Length - BytesPending < maxRequired) 205WriteIndentation(output.Slice(BytesPending), indent); 222OperationStatus status = JsonWriterHelper.ToUtf8(escapedPropertyName, output.Slice(BytesPending), out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (15)
340if (_memory.Length - BytesPending < maxRequired) 358value.CopyTo(output.Slice(BytesPending)); 370if (_memory.Length - BytesPending < maxRequired) 383escapedPropertyName.CopyTo(output.Slice(BytesPending)); 389value.CopyTo(output.Slice(BytesPending)); 403if (_memory.Length - BytesPending < maxRequired) 414escapedPropertyNameSection.CopyTo(output.Slice(BytesPending)); 417value.CopyTo(output.Slice(BytesPending)); 433if (_memory.Length - BytesPending < maxRequired) 452WriteIndentation(output.Slice(BytesPending), indent); 463value.CopyTo(output.Slice(BytesPending)); 478if (_memory.Length - BytesPending < maxRequired) 497WriteIndentation(output.Slice(BytesPending), indent); 502escapedPropertyName.CopyTo(output.Slice(BytesPending)); 509value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (12)
293if (_memory.Length - BytesPending < maxRequired) 311bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 323if (_memory.Length - BytesPending < maxRequired) 336escapedPropertyName.CopyTo(output.Slice(BytesPending)); 342bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 358if (_memory.Length - BytesPending < maxRequired) 377WriteIndentation(output.Slice(BytesPending), indent); 388bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 403if (_memory.Length - BytesPending < maxRequired) 422WriteIndentation(output.Slice(BytesPending), indent); 427escapedPropertyName.CopyTo(output.Slice(BytesPending)); 434bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (30)
165if (_memory.Length - BytesPending < maxRequired) 196if (_memory.Length - BytesPending < maxRequired) 213WriteIndentation(output.Slice(BytesPending), indent); 325if (_memory.Length - BytesPending < maxRequired) 338escapedPropertyName.CopyTo(output.Slice(BytesPending)); 354if (_memory.Length - BytesPending < maxRequired) 366escapedPropertyNameSection.CopyTo(output.Slice(BytesPending)); 383if (_memory.Length - BytesPending < maxRequired) 402WriteIndentation(output.Slice(BytesPending), indent); 407escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1364if (_memory.Length - BytesPending < maxRequired) 1398if (_memory.Length - BytesPending < maxRequired) 1411escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1419escapedValue.CopyTo(output.Slice(BytesPending)); 1435if (_memory.Length - BytesPending < maxRequired) 1455escapedValue.CopyTo(output.Slice(BytesPending)); 1471if (_memory.Length - BytesPending < maxRequired) 1484escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1510if (_memory.Length - BytesPending < maxRequired) 1529WriteIndentation(output.Slice(BytesPending), indent); 1559if (_memory.Length - BytesPending < maxRequired) 1578WriteIndentation(output.Slice(BytesPending), indent); 1583escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1592escapedValue.CopyTo(output.Slice(BytesPending)); 1611if (_memory.Length - BytesPending < maxRequired) 1630WriteIndentation(output.Slice(BytesPending), indent); 1643escapedValue.CopyTo(output.Slice(BytesPending)); 1662if (_memory.Length - BytesPending < maxRequired) 1681WriteIndentation(output.Slice(BytesPending), indent); 1686escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (12)
302if (_memory.Length - BytesPending < maxRequired) 320bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 332if (_memory.Length - BytesPending < maxRequired) 345escapedPropertyName.CopyTo(output.Slice(BytesPending)); 351bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 367if (_memory.Length - BytesPending < maxRequired) 386WriteIndentation(output.Slice(BytesPending), indent); 397bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 412if (_memory.Length - BytesPending < maxRequired) 431WriteIndentation(output.Slice(BytesPending), indent); 436escapedPropertyName.CopyTo(output.Slice(BytesPending)); 443bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (3)
69if (_memory.Length - BytesPending < maxRequired) 109if (_memory.Length - BytesPending < maxRequired) 127WriteIndentation(output.Slice(BytesPending), indent);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (10)
86if (_memory.Length - BytesPending < maxRequired) 96OperationStatus status = JsonWriterHelper.ToUtf8(value, output.Slice(BytesPending), out int written); 120if (_memory.Length - BytesPending < maxRequired) 130WriteIndentation(output.Slice(BytesPending), indent); 137OperationStatus status = JsonWriterHelper.ToUtf8(value, output.Slice(BytesPending), out int written); 199if (_memory.Length - BytesPending < maxRequired) 209utf8Value.CopyTo(output.Slice(BytesPending)); 226if (_memory.Length - BytesPending < maxRequired) 237WriteIndentation(output.Slice(BytesPending), indent); 244utf8Value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (5)
46if (_memory.Length - BytesPending < maxRequired) 60JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 74if (_memory.Length - BytesPending < maxRequired) 92WriteIndentation(output.Slice(BytesPending), indent); 98JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (5)
47if (_memory.Length - BytesPending < maxRequired) 61JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 75if (_memory.Length - BytesPending < maxRequired) 93WriteIndentation(output.Slice(BytesPending), indent); 99JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (5)
46if (_memory.Length - BytesPending < maxRequired) 58bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 70if (_memory.Length - BytesPending < maxRequired) 88WriteIndentation(output.Slice(BytesPending), indent); 92bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (5)
50if (_memory.Length - BytesPending < maxRequired) 62bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 74if (_memory.Length - BytesPending < maxRequired) 92WriteIndentation(output.Slice(BytesPending), indent); 96bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (5)
50if (_memory.Length - BytesPending < maxRequired) 62bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 74if (_memory.Length - BytesPending < maxRequired) 92WriteIndentation(output.Slice(BytesPending), indent); 96bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (5)
51if (_memory.Length - BytesPending < maxRequired) 63utf8Value.CopyTo(output.Slice(BytesPending)); 76if (_memory.Length - BytesPending < maxRequired) 94WriteIndentation(output.Slice(BytesPending), indent); 98utf8Value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (5)
46if (_memory.Length - BytesPending < maxRequired) 60bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 75if (_memory.Length - BytesPending < maxRequired) 93WriteIndentation(output.Slice(BytesPending), indent); 99bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (1)
130Span<byte> destination = output.Slice(BytesPending);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (5)
70if (_memory.Length - BytesPending < maxRequired) 82utf8Value.CopyTo(output.Slice(BytesPending)); 94if (_memory.Length - BytesPending < maxRequired) 112WriteIndentation(output.Slice(BytesPending), indent); 116utf8Value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
175if (_memory.Length - BytesPending < maxRequired) 187utf8Json.CopyTo(output.Slice(BytesPending)); 263if (_memory.Length - BytesPending < maxRequired) 275utf8Json.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (5)
59if (_memory.Length - BytesPending < maxRequired) 71bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 83if (_memory.Length - BytesPending < maxRequired) 101WriteIndentation(output.Slice(BytesPending), indent); 105bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (8)
124if (_memory.Length - BytesPending < maxRequired) 154if (_memory.Length - BytesPending < maxRequired) 172WriteIndentation(output.Slice(BytesPending), indent); 270if (_memory.Length - BytesPending < maxRequired) 283escapedValue.CopyTo(output.Slice(BytesPending)); 300if (_memory.Length - BytesPending < maxRequired) 318WriteIndentation(output.Slice(BytesPending), indent); 324escapedValue.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (8)
170if (_memory.Length - BytesPending < requiredBytes) 336if (_memory.Length - BytesPending < requiredBytes) 343escapedValue.CopyTo(output.Slice(BytesPending)); 449if (_memory.Length - BytesPending < requiredBytes) 480if (_memory.Length - BytesPending < bytesRequired) 498WriteIndentation(output.Slice(BytesPending), indent); 509if (_memory.Length - BytesPending < bytesRequired) 526if (_memory.Length == BytesPending)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (5)
61if (_memory.Length - BytesPending < maxRequired) 73bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 85if (_memory.Length - BytesPending < maxRequired) 103WriteIndentation(output.Slice(BytesPending), indent); 107bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);