@@ -11,7 +11,7 @@ public void Append(System.Byte value)
11
11
{
12
12
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
13
13
{
14
- Grow ( ) ;
14
+ Grow ( written ) ;
15
15
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
16
16
{
17
17
ThrowArgumentException ( nameof ( value ) ) ;
@@ -26,7 +26,7 @@ public void Append(System.Byte value, string format)
26
26
{
27
27
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
28
28
{
29
- Grow ( ) ;
29
+ Grow ( written ) ;
30
30
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
31
31
{
32
32
ThrowArgumentException ( nameof ( value ) ) ;
@@ -56,7 +56,7 @@ public void Append(System.DateTime value)
56
56
{
57
57
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
58
58
{
59
- Grow ( ) ;
59
+ Grow ( written ) ;
60
60
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
61
61
{
62
62
ThrowArgumentException ( nameof ( value ) ) ;
@@ -71,7 +71,7 @@ public void Append(System.DateTime value, string format)
71
71
{
72
72
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
73
73
{
74
- Grow ( ) ;
74
+ Grow ( written ) ;
75
75
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
76
76
{
77
77
ThrowArgumentException ( nameof ( value ) ) ;
@@ -101,7 +101,7 @@ public void Append(System.DateTimeOffset value)
101
101
{
102
102
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
103
103
{
104
- Grow ( ) ;
104
+ Grow ( written ) ;
105
105
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
106
106
{
107
107
ThrowArgumentException ( nameof ( value ) ) ;
@@ -116,7 +116,7 @@ public void Append(System.DateTimeOffset value, string format)
116
116
{
117
117
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
118
118
{
119
- Grow ( ) ;
119
+ Grow ( written ) ;
120
120
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
121
121
{
122
122
ThrowArgumentException ( nameof ( value ) ) ;
@@ -146,7 +146,7 @@ public void Append(System.Decimal value)
146
146
{
147
147
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
148
148
{
149
- Grow ( ) ;
149
+ Grow ( written ) ;
150
150
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
151
151
{
152
152
ThrowArgumentException ( nameof ( value ) ) ;
@@ -161,7 +161,7 @@ public void Append(System.Decimal value, string format)
161
161
{
162
162
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
163
163
{
164
- Grow ( ) ;
164
+ Grow ( written ) ;
165
165
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
166
166
{
167
167
ThrowArgumentException ( nameof ( value ) ) ;
@@ -191,7 +191,7 @@ public void Append(System.Double value)
191
191
{
192
192
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
193
193
{
194
- Grow ( ) ;
194
+ Grow ( written ) ;
195
195
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
196
196
{
197
197
ThrowArgumentException ( nameof ( value ) ) ;
@@ -206,7 +206,7 @@ public void Append(System.Double value, string format)
206
206
{
207
207
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
208
208
{
209
- Grow ( ) ;
209
+ Grow ( written ) ;
210
210
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
211
211
{
212
212
ThrowArgumentException ( nameof ( value ) ) ;
@@ -236,7 +236,7 @@ public void Append(System.Int16 value)
236
236
{
237
237
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
238
238
{
239
- Grow ( ) ;
239
+ Grow ( written ) ;
240
240
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
241
241
{
242
242
ThrowArgumentException ( nameof ( value ) ) ;
@@ -251,7 +251,7 @@ public void Append(System.Int16 value, string format)
251
251
{
252
252
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
253
253
{
254
- Grow ( ) ;
254
+ Grow ( written ) ;
255
255
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
256
256
{
257
257
ThrowArgumentException ( nameof ( value ) ) ;
@@ -281,7 +281,7 @@ public void Append(System.Int32 value)
281
281
{
282
282
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
283
283
{
284
- Grow ( ) ;
284
+ Grow ( written ) ;
285
285
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
286
286
{
287
287
ThrowArgumentException ( nameof ( value ) ) ;
@@ -296,7 +296,7 @@ public void Append(System.Int32 value, string format)
296
296
{
297
297
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
298
298
{
299
- Grow ( ) ;
299
+ Grow ( written ) ;
300
300
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
301
301
{
302
302
ThrowArgumentException ( nameof ( value ) ) ;
@@ -326,7 +326,7 @@ public void Append(System.Int64 value)
326
326
{
327
327
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
328
328
{
329
- Grow ( ) ;
329
+ Grow ( written ) ;
330
330
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
331
331
{
332
332
ThrowArgumentException ( nameof ( value ) ) ;
@@ -341,7 +341,7 @@ public void Append(System.Int64 value, string format)
341
341
{
342
342
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
343
343
{
344
- Grow ( ) ;
344
+ Grow ( written ) ;
345
345
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
346
346
{
347
347
ThrowArgumentException ( nameof ( value ) ) ;
@@ -371,7 +371,7 @@ public void Append(System.SByte value)
371
371
{
372
372
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
373
373
{
374
- Grow ( ) ;
374
+ Grow ( written ) ;
375
375
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
376
376
{
377
377
ThrowArgumentException ( nameof ( value ) ) ;
@@ -386,7 +386,7 @@ public void Append(System.SByte value, string format)
386
386
{
387
387
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
388
388
{
389
- Grow ( ) ;
389
+ Grow ( written ) ;
390
390
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
391
391
{
392
392
ThrowArgumentException ( nameof ( value ) ) ;
@@ -416,7 +416,7 @@ public void Append(System.Single value)
416
416
{
417
417
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
418
418
{
419
- Grow ( ) ;
419
+ Grow ( written ) ;
420
420
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
421
421
{
422
422
ThrowArgumentException ( nameof ( value ) ) ;
@@ -431,7 +431,7 @@ public void Append(System.Single value, string format)
431
431
{
432
432
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
433
433
{
434
- Grow ( ) ;
434
+ Grow ( written ) ;
435
435
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
436
436
{
437
437
ThrowArgumentException ( nameof ( value ) ) ;
@@ -461,7 +461,7 @@ public void Append(System.TimeSpan value)
461
461
{
462
462
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
463
463
{
464
- Grow ( ) ;
464
+ Grow ( written ) ;
465
465
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
466
466
{
467
467
ThrowArgumentException ( nameof ( value ) ) ;
@@ -476,7 +476,7 @@ public void Append(System.TimeSpan value, string format)
476
476
{
477
477
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
478
478
{
479
- Grow ( ) ;
479
+ Grow ( written ) ;
480
480
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
481
481
{
482
482
ThrowArgumentException ( nameof ( value ) ) ;
@@ -506,7 +506,7 @@ public void Append(System.UInt16 value)
506
506
{
507
507
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
508
508
{
509
- Grow ( ) ;
509
+ Grow ( written ) ;
510
510
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
511
511
{
512
512
ThrowArgumentException ( nameof ( value ) ) ;
@@ -521,7 +521,7 @@ public void Append(System.UInt16 value, string format)
521
521
{
522
522
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
523
523
{
524
- Grow ( ) ;
524
+ Grow ( written ) ;
525
525
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
526
526
{
527
527
ThrowArgumentException ( nameof ( value ) ) ;
@@ -551,7 +551,7 @@ public void Append(System.UInt32 value)
551
551
{
552
552
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
553
553
{
554
- Grow ( ) ;
554
+ Grow ( written ) ;
555
555
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
556
556
{
557
557
ThrowArgumentException ( nameof ( value ) ) ;
@@ -566,7 +566,7 @@ public void Append(System.UInt32 value, string format)
566
566
{
567
567
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
568
568
{
569
- Grow ( ) ;
569
+ Grow ( written ) ;
570
570
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
571
571
{
572
572
ThrowArgumentException ( nameof ( value ) ) ;
@@ -596,7 +596,7 @@ public void Append(System.UInt64 value)
596
596
{
597
597
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
598
598
{
599
- Grow ( ) ;
599
+ Grow ( written ) ;
600
600
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
601
601
{
602
602
ThrowArgumentException ( nameof ( value ) ) ;
@@ -611,7 +611,7 @@ public void Append(System.UInt64 value, string format)
611
611
{
612
612
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
613
613
{
614
- Grow ( ) ;
614
+ Grow ( written ) ;
615
615
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
616
616
{
617
617
ThrowArgumentException ( nameof ( value ) ) ;
@@ -641,7 +641,7 @@ public void Append(System.Guid value)
641
641
{
642
642
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written ) )
643
643
{
644
- Grow ( ) ;
644
+ Grow ( written ) ;
645
645
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written ) )
646
646
{
647
647
ThrowArgumentException ( nameof ( value ) ) ;
@@ -656,7 +656,7 @@ public void Append(System.Guid value, string format)
656
656
{
657
657
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out var written , format . AsSpan ( ) ) )
658
658
{
659
- Grow ( ) ;
659
+ Grow ( written ) ;
660
660
if ( ! value . TryFormat ( buffer . AsSpan ( index ) , out written , format . AsSpan ( ) ) )
661
661
{
662
662
ThrowArgumentException ( nameof ( value ) ) ;
0 commit comments