541 writes to BytesPending
System.Text.Json (541)
System\Text\Json\Writer\Utf8JsonWriter.cs (16)
370BytesPending = default; 419BytesPending = 0; 439BytesPending = 0; 528BytesPending = 0; 544BytesPending = 0; 605output[BytesPending++] = JsonConstants.ListSeparator; 607output[BytesPending++] = token; 685output[BytesPending++] = JsonConstants.ListSeparator; 692BytesPending += indent; 695output[BytesPending++] = token; 1047output[BytesPending++] = token; 1132BytesPending += indent; 1134output[BytesPending++] = token; 1145output[BytesPending++] = JsonConstants.CarriageReturn; 1147output[BytesPending++] = JsonConstants.LineFeed; 1202BytesPending = 0;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (30)
228output[BytesPending++] = JsonConstants.ListSeparator; 230output[BytesPending++] = JsonConstants.Quote; 234output[BytesPending++] = JsonConstants.Quote; 235output[BytesPending++] = JsonConstants.KeyValueSeparator; 237output[BytesPending++] = JsonConstants.Quote; 241output[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; 277output[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; 327output[BytesPending++] = JsonConstants.Quote; 352output[BytesPending++] = JsonConstants.ListSeparator; 363BytesPending += indent; 365output[BytesPending++] = JsonConstants.Quote; 368BytesPending += escapedPropertyName.Length; 370output[BytesPending++] = JsonConstants.Quote; 371output[BytesPending++] = JsonConstants.KeyValueSeparator; 372output[BytesPending++] = JsonConstants.Space; 374output[BytesPending++] = JsonConstants.Quote; 378output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (34)
233output[BytesPending++] = JsonConstants.ListSeparator; 235output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.Quote; 240output[BytesPending++] = JsonConstants.KeyValueSeparator; 242output[BytesPending++] = JsonConstants.Quote; 245BytesPending += bytesWritten; 247output[BytesPending++] = JsonConstants.Quote; 266output[BytesPending++] = JsonConstants.ListSeparator; 268output[BytesPending++] = JsonConstants.Quote; 271BytesPending += escapedPropertyName.Length; 273output[BytesPending++] = JsonConstants.Quote; 274output[BytesPending++] = JsonConstants.KeyValueSeparator; 276output[BytesPending++] = JsonConstants.Quote; 279BytesPending += bytesWritten; 281output[BytesPending++] = JsonConstants.Quote; 304output[BytesPending++] = JsonConstants.ListSeparator; 315BytesPending += indent; 317output[BytesPending++] = JsonConstants.Quote; 321output[BytesPending++] = JsonConstants.Quote; 322output[BytesPending++] = JsonConstants.KeyValueSeparator; 323output[BytesPending++] = JsonConstants.Space; 325output[BytesPending++] = JsonConstants.Quote; 328BytesPending += bytesWritten; 330output[BytesPending++] = JsonConstants.Quote; 352output[BytesPending++] = JsonConstants.ListSeparator; 363BytesPending += indent; 365output[BytesPending++] = JsonConstants.Quote; 368BytesPending += escapedPropertyName.Length; 370output[BytesPending++] = JsonConstants.Quote; 371output[BytesPending++] = JsonConstants.KeyValueSeparator; 372output[BytesPending++] = JsonConstants.Space; 374output[BytesPending++] = JsonConstants.Quote; 377BytesPending += bytesWritten; 379output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (34)
232output[BytesPending++] = JsonConstants.ListSeparator; 234output[BytesPending++] = JsonConstants.Quote; 238output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.KeyValueSeparator; 241output[BytesPending++] = JsonConstants.Quote; 244BytesPending += bytesWritten; 246output[BytesPending++] = JsonConstants.Quote; 265output[BytesPending++] = JsonConstants.ListSeparator; 267output[BytesPending++] = JsonConstants.Quote; 270BytesPending += escapedPropertyName.Length; 272output[BytesPending++] = JsonConstants.Quote; 273output[BytesPending++] = JsonConstants.KeyValueSeparator; 275output[BytesPending++] = JsonConstants.Quote; 278BytesPending += bytesWritten; 280output[BytesPending++] = JsonConstants.Quote; 303output[BytesPending++] = JsonConstants.ListSeparator; 314BytesPending += indent; 316output[BytesPending++] = JsonConstants.Quote; 320output[BytesPending++] = JsonConstants.Quote; 321output[BytesPending++] = JsonConstants.KeyValueSeparator; 322output[BytesPending++] = JsonConstants.Space; 324output[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; 376BytesPending += bytesWritten; 378output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (26)
232output[BytesPending++] = JsonConstants.ListSeparator; 234output[BytesPending++] = JsonConstants.Quote; 238output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.KeyValueSeparator; 243BytesPending += bytesWritten; 262output[BytesPending++] = JsonConstants.ListSeparator; 264output[BytesPending++] = JsonConstants.Quote; 267BytesPending += escapedPropertyName.Length; 269output[BytesPending++] = JsonConstants.Quote; 270output[BytesPending++] = JsonConstants.KeyValueSeparator; 274BytesPending += bytesWritten; 297output[BytesPending++] = JsonConstants.ListSeparator; 308BytesPending += indent; 310output[BytesPending++] = JsonConstants.Quote; 314output[BytesPending++] = JsonConstants.Quote; 315output[BytesPending++] = JsonConstants.KeyValueSeparator; 316output[BytesPending++] = JsonConstants.Space; 320BytesPending += bytesWritten; 342output[BytesPending++] = JsonConstants.ListSeparator; 353BytesPending += indent; 355output[BytesPending++] = JsonConstants.Quote; 358BytesPending += escapedPropertyName.Length; 360output[BytesPending++] = JsonConstants.Quote; 361output[BytesPending++] = JsonConstants.KeyValueSeparator; 362output[BytesPending++] = JsonConstants.Space; 366BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (26)
236output[BytesPending++] = JsonConstants.ListSeparator; 238output[BytesPending++] = JsonConstants.Quote; 242output[BytesPending++] = JsonConstants.Quote; 243output[BytesPending++] = JsonConstants.KeyValueSeparator; 247BytesPending += bytesWritten; 266output[BytesPending++] = JsonConstants.ListSeparator; 268output[BytesPending++] = JsonConstants.Quote; 271BytesPending += escapedPropertyName.Length; 273output[BytesPending++] = JsonConstants.Quote; 274output[BytesPending++] = JsonConstants.KeyValueSeparator; 278BytesPending += bytesWritten; 301output[BytesPending++] = JsonConstants.ListSeparator; 312BytesPending += indent; 314output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.Quote; 319output[BytesPending++] = JsonConstants.KeyValueSeparator; 320output[BytesPending++] = JsonConstants.Space; 324BytesPending += bytesWritten; 346output[BytesPending++] = JsonConstants.ListSeparator; 357BytesPending += indent; 359output[BytesPending++] = JsonConstants.Quote; 362BytesPending += escapedPropertyName.Length; 364output[BytesPending++] = JsonConstants.Quote; 365output[BytesPending++] = JsonConstants.KeyValueSeparator; 366output[BytesPending++] = JsonConstants.Space; 370BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (26)
236output[BytesPending++] = JsonConstants.ListSeparator; 238output[BytesPending++] = JsonConstants.Quote; 242output[BytesPending++] = JsonConstants.Quote; 243output[BytesPending++] = JsonConstants.KeyValueSeparator; 247BytesPending += bytesWritten; 266output[BytesPending++] = JsonConstants.ListSeparator; 268output[BytesPending++] = JsonConstants.Quote; 271BytesPending += escapedPropertyName.Length; 273output[BytesPending++] = JsonConstants.Quote; 274output[BytesPending++] = JsonConstants.KeyValueSeparator; 278BytesPending += bytesWritten; 301output[BytesPending++] = JsonConstants.ListSeparator; 312BytesPending += indent; 314output[BytesPending++] = JsonConstants.Quote; 318output[BytesPending++] = JsonConstants.Quote; 319output[BytesPending++] = JsonConstants.KeyValueSeparator; 320output[BytesPending++] = JsonConstants.Space; 324BytesPending += bytesWritten; 346output[BytesPending++] = JsonConstants.ListSeparator; 357BytesPending += indent; 359output[BytesPending++] = JsonConstants.Quote; 362BytesPending += escapedPropertyName.Length; 364output[BytesPending++] = JsonConstants.Quote; 365output[BytesPending++] = JsonConstants.KeyValueSeparator; 366output[BytesPending++] = JsonConstants.Space; 370BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (34)
232output[BytesPending++] = JsonConstants.ListSeparator; 234output[BytesPending++] = JsonConstants.Quote; 238output[BytesPending++] = JsonConstants.Quote; 239output[BytesPending++] = JsonConstants.KeyValueSeparator; 241output[BytesPending++] = JsonConstants.Quote; 245BytesPending += bytesWritten; 247output[BytesPending++] = JsonConstants.Quote; 266output[BytesPending++] = JsonConstants.ListSeparator; 268output[BytesPending++] = JsonConstants.Quote; 271BytesPending += escapedPropertyName.Length; 273output[BytesPending++] = JsonConstants.Quote; 274output[BytesPending++] = JsonConstants.KeyValueSeparator; 276output[BytesPending++] = JsonConstants.Quote; 280BytesPending += bytesWritten; 282output[BytesPending++] = JsonConstants.Quote; 305output[BytesPending++] = JsonConstants.ListSeparator; 316BytesPending += indent; 318output[BytesPending++] = JsonConstants.Quote; 322output[BytesPending++] = JsonConstants.Quote; 323output[BytesPending++] = JsonConstants.KeyValueSeparator; 324output[BytesPending++] = JsonConstants.Space; 326output[BytesPending++] = JsonConstants.Quote; 330BytesPending += bytesWritten; 332output[BytesPending++] = JsonConstants.Quote; 354output[BytesPending++] = JsonConstants.ListSeparator; 365BytesPending += indent; 367output[BytesPending++] = JsonConstants.Quote; 370BytesPending += escapedPropertyName.Length; 372output[BytesPending++] = JsonConstants.Quote; 373output[BytesPending++] = JsonConstants.KeyValueSeparator; 374output[BytesPending++] = JsonConstants.Space; 376output[BytesPending++] = JsonConstants.Quote; 380BytesPending += bytesWritten; 382output[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)
355output[BytesPending++] = JsonConstants.ListSeparator; 357output[BytesPending++] = JsonConstants.Quote; 361output[BytesPending++] = JsonConstants.Quote; 362output[BytesPending++] = JsonConstants.KeyValueSeparator; 365BytesPending += value.Length; 385output[BytesPending++] = JsonConstants.ListSeparator; 387output[BytesPending++] = JsonConstants.Quote; 390BytesPending += escapedPropertyName.Length; 392output[BytesPending++] = JsonConstants.Quote; 393output[BytesPending++] = JsonConstants.KeyValueSeparator; 396BytesPending += value.Length; 417output[BytesPending++] = JsonConstants.ListSeparator; 421BytesPending += escapedPropertyNameSection.Length; 424BytesPending += value.Length; 448output[BytesPending++] = JsonConstants.ListSeparator; 459BytesPending += indent; 461output[BytesPending++] = JsonConstants.Quote; 465output[BytesPending++] = JsonConstants.Quote; 466output[BytesPending++] = JsonConstants.KeyValueSeparator; 467output[BytesPending++] = JsonConstants.Space; 470BytesPending += value.Length; 493output[BytesPending++] = JsonConstants.ListSeparator; 504BytesPending += indent; 506output[BytesPending++] = JsonConstants.Quote; 509BytesPending += escapedPropertyName.Length; 511output[BytesPending++] = JsonConstants.Quote; 512output[BytesPending++] = JsonConstants.KeyValueSeparator; 513output[BytesPending++] = JsonConstants.Space; 516BytesPending += value.Length;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (26)
308output[BytesPending++] = JsonConstants.ListSeparator; 310output[BytesPending++] = JsonConstants.Quote; 314output[BytesPending++] = JsonConstants.Quote; 315output[BytesPending++] = JsonConstants.KeyValueSeparator; 319BytesPending += bytesWritten; 338output[BytesPending++] = JsonConstants.ListSeparator; 340output[BytesPending++] = JsonConstants.Quote; 343BytesPending += escapedPropertyName.Length; 345output[BytesPending++] = JsonConstants.Quote; 346output[BytesPending++] = JsonConstants.KeyValueSeparator; 350BytesPending += bytesWritten; 373output[BytesPending++] = JsonConstants.ListSeparator; 384BytesPending += indent; 386output[BytesPending++] = JsonConstants.Quote; 390output[BytesPending++] = JsonConstants.Quote; 391output[BytesPending++] = JsonConstants.KeyValueSeparator; 392output[BytesPending++] = JsonConstants.Space; 396BytesPending += bytesWritten; 418output[BytesPending++] = JsonConstants.ListSeparator; 429BytesPending += indent; 431output[BytesPending++] = JsonConstants.Quote; 434BytesPending += escapedPropertyName.Length; 436output[BytesPending++] = JsonConstants.Quote; 437output[BytesPending++] = JsonConstants.KeyValueSeparator; 438output[BytesPending++] = JsonConstants.Space; 442BytesPending += bytesWritten;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (88)
177output[BytesPending++] = JsonConstants.ListSeparator; 179output[BytesPending++] = JsonConstants.Quote; 183output[BytesPending++] = JsonConstants.Quote; 184output[BytesPending++] = JsonConstants.KeyValueSeparator; 208output[BytesPending++] = JsonConstants.ListSeparator; 217BytesPending += indent; 219output[BytesPending++] = JsonConstants.Quote; 223output[BytesPending++] = JsonConstants.Quote; 224output[BytesPending++] = JsonConstants.KeyValueSeparator; 225output[BytesPending++] = JsonConstants.Space; 337output[BytesPending++] = JsonConstants.ListSeparator; 339output[BytesPending++] = JsonConstants.Quote; 342BytesPending += escapedPropertyName.Length; 344output[BytesPending++] = JsonConstants.Quote; 345output[BytesPending++] = JsonConstants.KeyValueSeparator; 366output[BytesPending++] = JsonConstants.ListSeparator; 370BytesPending += escapedPropertyNameSection.Length; 395output[BytesPending++] = JsonConstants.ListSeparator; 406BytesPending += indent; 408output[BytesPending++] = JsonConstants.Quote; 411BytesPending += escapedPropertyName.Length; 413output[BytesPending++] = JsonConstants.Quote; 414output[BytesPending++] = JsonConstants.KeyValueSeparator; 415output[BytesPending++] = JsonConstants.Space; 1388output[BytesPending++] = JsonConstants.ListSeparator; 1390output[BytesPending++] = JsonConstants.Quote; 1394output[BytesPending++] = JsonConstants.Quote; 1395output[BytesPending++] = JsonConstants.KeyValueSeparator; 1397output[BytesPending++] = JsonConstants.Quote; 1401output[BytesPending++] = JsonConstants.Quote; 1422output[BytesPending++] = JsonConstants.ListSeparator; 1424output[BytesPending++] = JsonConstants.Quote; 1427BytesPending += escapedPropertyName.Length; 1429output[BytesPending++] = JsonConstants.Quote; 1430output[BytesPending++] = JsonConstants.KeyValueSeparator; 1432output[BytesPending++] = JsonConstants.Quote; 1435BytesPending += escapedValue.Length; 1437output[BytesPending++] = JsonConstants.Quote; 1459output[BytesPending++] = JsonConstants.ListSeparator; 1461output[BytesPending++] = JsonConstants.Quote; 1465output[BytesPending++] = JsonConstants.Quote; 1466output[BytesPending++] = JsonConstants.KeyValueSeparator; 1468output[BytesPending++] = JsonConstants.Quote; 1471BytesPending += escapedValue.Length; 1473output[BytesPending++] = JsonConstants.Quote; 1495output[BytesPending++] = JsonConstants.ListSeparator; 1497output[BytesPending++] = JsonConstants.Quote; 1500BytesPending += escapedPropertyName.Length; 1502output[BytesPending++] = JsonConstants.Quote; 1503output[BytesPending++] = JsonConstants.KeyValueSeparator; 1505output[BytesPending++] = JsonConstants.Quote; 1509output[BytesPending++] = JsonConstants.Quote; 1534output[BytesPending++] = JsonConstants.ListSeparator; 1545BytesPending += indent; 1547output[BytesPending++] = JsonConstants.Quote; 1551output[BytesPending++] = JsonConstants.Quote; 1552output[BytesPending++] = JsonConstants.KeyValueSeparator; 1553output[BytesPending++] = JsonConstants.Space; 1555output[BytesPending++] = JsonConstants.Quote; 1559output[BytesPending++] = JsonConstants.Quote; 1583output[BytesPending++] = JsonConstants.ListSeparator; 1594BytesPending += indent; 1596output[BytesPending++] = JsonConstants.Quote; 1599BytesPending += escapedPropertyName.Length; 1601output[BytesPending++] = JsonConstants.Quote; 1602output[BytesPending++] = JsonConstants.KeyValueSeparator; 1603output[BytesPending++] = JsonConstants.Space; 1605output[BytesPending++] = JsonConstants.Quote; 1608BytesPending += escapedValue.Length; 1610output[BytesPending++] = JsonConstants.Quote; 1635output[BytesPending++] = JsonConstants.ListSeparator; 1646BytesPending += indent; 1648output[BytesPending++] = JsonConstants.Quote; 1652output[BytesPending++] = JsonConstants.Quote; 1653output[BytesPending++] = JsonConstants.KeyValueSeparator; 1654output[BytesPending++] = JsonConstants.Space; 1656output[BytesPending++] = JsonConstants.Quote; 1659BytesPending += escapedValue.Length; 1661output[BytesPending++] = JsonConstants.Quote; 1686output[BytesPending++] = JsonConstants.ListSeparator; 1697BytesPending += indent; 1699output[BytesPending++] = JsonConstants.Quote; 1702BytesPending += escapedPropertyName.Length; 1704output[BytesPending++] = JsonConstants.Quote; 1705output[BytesPending++] = JsonConstants.KeyValueSeparator; 1706output[BytesPending++] = JsonConstants.Space; 1708output[BytesPending++] = JsonConstants.Quote; 1712output[BytesPending++] = JsonConstants.Quote;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (26)
317output[BytesPending++] = JsonConstants.ListSeparator; 319output[BytesPending++] = JsonConstants.Quote; 323output[BytesPending++] = JsonConstants.Quote; 324output[BytesPending++] = JsonConstants.KeyValueSeparator; 328BytesPending += bytesWritten; 347output[BytesPending++] = JsonConstants.ListSeparator; 349output[BytesPending++] = JsonConstants.Quote; 352BytesPending += escapedPropertyName.Length; 354output[BytesPending++] = JsonConstants.Quote; 355output[BytesPending++] = JsonConstants.KeyValueSeparator; 359BytesPending += bytesWritten; 382output[BytesPending++] = JsonConstants.ListSeparator; 393BytesPending += indent; 395output[BytesPending++] = JsonConstants.Quote; 399output[BytesPending++] = JsonConstants.Quote; 400output[BytesPending++] = JsonConstants.KeyValueSeparator; 401output[BytesPending++] = JsonConstants.Space; 405BytesPending += bytesWritten; 427output[BytesPending++] = JsonConstants.ListSeparator; 438BytesPending += indent; 440output[BytesPending++] = JsonConstants.Quote; 443BytesPending += escapedPropertyName.Length; 445output[BytesPending++] = JsonConstants.Quote; 446output[BytesPending++] = JsonConstants.KeyValueSeparator; 447output[BytesPending++] = JsonConstants.Space; 451BytesPending += 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)
96output[BytesPending++] = JsonConstants.Slash; 97output[BytesPending++] = JsonConstants.Asterisk; 106BytesPending += written; 108output[BytesPending++] = JsonConstants.Asterisk; 109output[BytesPending++] = JsonConstants.Slash; 134BytesPending += indent; 137output[BytesPending++] = JsonConstants.Slash; 138output[BytesPending++] = JsonConstants.Asterisk; 147BytesPending += written; 149output[BytesPending++] = JsonConstants.Asterisk; 150output[BytesPending++] = JsonConstants.Slash; 209output[BytesPending++] = JsonConstants.Slash; 210output[BytesPending++] = JsonConstants.Asterisk; 213BytesPending += utf8Value.Length; 215output[BytesPending++] = JsonConstants.Asterisk; 216output[BytesPending++] = JsonConstants.Slash; 241BytesPending += indent; 244output[BytesPending++] = JsonConstants.Slash; 245output[BytesPending++] = JsonConstants.Asterisk; 248BytesPending += utf8Value.Length; 250output[BytesPending++] = JsonConstants.Asterisk; 251output[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)
187output[BytesPending++] = JsonConstants.ListSeparator; 191BytesPending += len; 275output[BytesPending++] = JsonConstants.ListSeparator; 279BytesPending += 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); 276OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted + writer.BytesPending); 325Debug.Assert(writer.BytesPending == 0);
System\Text\Json\Writer\Utf8JsonWriter.cs (22)
416if (BytesPending != 0) 418_arrayBufferWriter.Advance(BytesPending); 435if (BytesPending != 0) 437_output.Advance(BytesPending); 438BytesCommitted += BytesPending; 525if (BytesPending != 0) 527_arrayBufferWriter.Advance(BytesPending); 540if (BytesPending != 0) 542_output.Advance(BytesPending); 543BytesCommitted += BytesPending; 597if (_memory.Length - BytesPending < 2) // 1 start token, and optionally, 1 list separator 676if (_memory.Length - BytesPending < maxRequired) 691WriteIndentation(output.Slice(BytesPending), indent); 1041if (_memory.Length - BytesPending < 1) // 1 end token 1122if (_memory.Length - BytesPending < maxRequired) 1131WriteIndentation(output.Slice(BytesPending), indent); 1183Debug.Assert(BytesPending != 0); 1189int needed = BytesPending + sizeHint; 1200_output.Advance(BytesPending); 1201BytesCommitted += BytesPending; 1216Debug.Assert(BytesPending == 0); 1259private string DebuggerDisplay => $"BytesCommitted = {BytesCommitted} BytesPending = {BytesPending} CurrentDepth = {CurrentDepth}";
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (8)
219if (_memory.Length - BytesPending < maxRequired) 254if (_memory.Length - BytesPending < maxRequired) 267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 293if (_memory.Length - BytesPending < maxRequired) 312WriteIndentation(output.Slice(BytesPending), indent); 343if (_memory.Length - BytesPending < maxRequired) 362WriteIndentation(output.Slice(BytesPending), indent); 367escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (12)
224if (_memory.Length - BytesPending < maxRequired) 244JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 257if (_memory.Length - BytesPending < maxRequired) 270escapedPropertyName.CopyTo(output.Slice(BytesPending)); 278JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 295if (_memory.Length - BytesPending < maxRequired) 314WriteIndentation(output.Slice(BytesPending), indent); 327JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 343if (_memory.Length - BytesPending < maxRequired) 362WriteIndentation(output.Slice(BytesPending), indent); 367escapedPropertyName.CopyTo(output.Slice(BytesPending)); 376JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (12)
223if (_memory.Length - BytesPending < maxRequired) 243JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 256if (_memory.Length - BytesPending < maxRequired) 269escapedPropertyName.CopyTo(output.Slice(BytesPending)); 277JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 294if (_memory.Length - BytesPending < maxRequired) 313WriteIndentation(output.Slice(BytesPending), indent); 326JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 342if (_memory.Length - BytesPending < maxRequired) 361WriteIndentation(output.Slice(BytesPending), indent); 366escapedPropertyName.CopyTo(output.Slice(BytesPending)); 375JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (12)
223if (_memory.Length - BytesPending < maxRequired) 241bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 253if (_memory.Length - BytesPending < maxRequired) 266escapedPropertyName.CopyTo(output.Slice(BytesPending)); 272bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 288if (_memory.Length - BytesPending < maxRequired) 307WriteIndentation(output.Slice(BytesPending), indent); 318bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 333if (_memory.Length - BytesPending < maxRequired) 352WriteIndentation(output.Slice(BytesPending), indent); 357escapedPropertyName.CopyTo(output.Slice(BytesPending)); 364bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (12)
227if (_memory.Length - BytesPending < maxRequired) 245bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 257if (_memory.Length - BytesPending < maxRequired) 270escapedPropertyName.CopyTo(output.Slice(BytesPending)); 276bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 292if (_memory.Length - BytesPending < maxRequired) 311WriteIndentation(output.Slice(BytesPending), indent); 322bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten); 337if (_memory.Length - BytesPending < maxRequired) 356WriteIndentation(output.Slice(BytesPending), indent); 361escapedPropertyName.CopyTo(output.Slice(BytesPending)); 368bool result = TryFormatDouble(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (12)
227if (_memory.Length - BytesPending < maxRequired) 245bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 257if (_memory.Length - BytesPending < maxRequired) 270escapedPropertyName.CopyTo(output.Slice(BytesPending)); 276bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 292if (_memory.Length - BytesPending < maxRequired) 311WriteIndentation(output.Slice(BytesPending), indent); 322bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten); 337if (_memory.Length - BytesPending < maxRequired) 356WriteIndentation(output.Slice(BytesPending), indent); 361escapedPropertyName.CopyTo(output.Slice(BytesPending)); 368bool result = TryFormatSingle(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (12)
223if (_memory.Length - BytesPending < maxRequired) 243bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 257if (_memory.Length - BytesPending < maxRequired) 270escapedPropertyName.CopyTo(output.Slice(BytesPending)); 278bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 296if (_memory.Length - BytesPending < maxRequired) 315WriteIndentation(output.Slice(BytesPending), indent); 328bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 345if (_memory.Length - BytesPending < maxRequired) 364WriteIndentation(output.Slice(BytesPending), indent); 369escapedPropertyName.CopyTo(output.Slice(BytesPending)); 378bool 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)
346if (_memory.Length - BytesPending < maxRequired) 364value.CopyTo(output.Slice(BytesPending)); 376if (_memory.Length - BytesPending < maxRequired) 389escapedPropertyName.CopyTo(output.Slice(BytesPending)); 395value.CopyTo(output.Slice(BytesPending)); 409if (_memory.Length - BytesPending < maxRequired) 420escapedPropertyNameSection.CopyTo(output.Slice(BytesPending)); 423value.CopyTo(output.Slice(BytesPending)); 439if (_memory.Length - BytesPending < maxRequired) 458WriteIndentation(output.Slice(BytesPending), indent); 469value.CopyTo(output.Slice(BytesPending)); 484if (_memory.Length - BytesPending < maxRequired) 503WriteIndentation(output.Slice(BytesPending), indent); 508escapedPropertyName.CopyTo(output.Slice(BytesPending)); 515value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (12)
299if (_memory.Length - BytesPending < maxRequired) 317bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 329if (_memory.Length - BytesPending < maxRequired) 342escapedPropertyName.CopyTo(output.Slice(BytesPending)); 348bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 364if (_memory.Length - BytesPending < maxRequired) 383WriteIndentation(output.Slice(BytesPending), indent); 394bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 409if (_memory.Length - BytesPending < maxRequired) 428WriteIndentation(output.Slice(BytesPending), indent); 433escapedPropertyName.CopyTo(output.Slice(BytesPending)); 440bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (30)
168if (_memory.Length - BytesPending < maxRequired) 199if (_memory.Length - BytesPending < maxRequired) 216WriteIndentation(output.Slice(BytesPending), indent); 328if (_memory.Length - BytesPending < maxRequired) 341escapedPropertyName.CopyTo(output.Slice(BytesPending)); 357if (_memory.Length - BytesPending < maxRequired) 369escapedPropertyNameSection.CopyTo(output.Slice(BytesPending)); 386if (_memory.Length - BytesPending < maxRequired) 405WriteIndentation(output.Slice(BytesPending), indent); 410escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1379if (_memory.Length - BytesPending < maxRequired) 1413if (_memory.Length - BytesPending < maxRequired) 1426escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1434escapedValue.CopyTo(output.Slice(BytesPending)); 1450if (_memory.Length - BytesPending < maxRequired) 1470escapedValue.CopyTo(output.Slice(BytesPending)); 1486if (_memory.Length - BytesPending < maxRequired) 1499escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1525if (_memory.Length - BytesPending < maxRequired) 1544WriteIndentation(output.Slice(BytesPending), indent); 1574if (_memory.Length - BytesPending < maxRequired) 1593WriteIndentation(output.Slice(BytesPending), indent); 1598escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1607escapedValue.CopyTo(output.Slice(BytesPending)); 1626if (_memory.Length - BytesPending < maxRequired) 1645WriteIndentation(output.Slice(BytesPending), indent); 1658escapedValue.CopyTo(output.Slice(BytesPending)); 1677if (_memory.Length - BytesPending < maxRequired) 1696WriteIndentation(output.Slice(BytesPending), indent); 1701escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (12)
308if (_memory.Length - BytesPending < maxRequired) 326bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 338if (_memory.Length - BytesPending < maxRequired) 351escapedPropertyName.CopyTo(output.Slice(BytesPending)); 357bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 373if (_memory.Length - BytesPending < maxRequired) 392WriteIndentation(output.Slice(BytesPending), indent); 403bool result = Utf8Formatter.TryFormat(value, output.Slice(BytesPending), out int bytesWritten); 418if (_memory.Length - BytesPending < maxRequired) 437WriteIndentation(output.Slice(BytesPending), indent); 442escapedPropertyName.CopyTo(output.Slice(BytesPending)); 449bool 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)
89if (_memory.Length - BytesPending < maxRequired) 99OperationStatus status = JsonWriterHelper.ToUtf8(value, output.Slice(BytesPending), out int written); 123if (_memory.Length - BytesPending < maxRequired) 133WriteIndentation(output.Slice(BytesPending), indent); 140OperationStatus status = JsonWriterHelper.ToUtf8(value, output.Slice(BytesPending), out int written); 202if (_memory.Length - BytesPending < maxRequired) 212utf8Value.CopyTo(output.Slice(BytesPending)); 229if (_memory.Length - BytesPending < maxRequired) 240WriteIndentation(output.Slice(BytesPending), indent); 247utf8Value.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)
178if (_memory.Length - BytesPending < maxRequired) 190utf8Json.CopyTo(output.Slice(BytesPending)); 266if (_memory.Length - BytesPending < maxRequired) 278utf8Json.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);