6 writes to _arrayBufferWriter
System.Text.Json (6)
System\Text\Json\Writer\Utf8JsonWriter.cs (6)
251
_arrayBufferWriter
= new ArrayBufferWriter<byte>();
313
_arrayBufferWriter
= new ArrayBufferWriter<byte>();
344
_arrayBufferWriter
= null;
354
_arrayBufferWriter
= null;
471
_arrayBufferWriter
= null;
502
_arrayBufferWriter
= null;
18 references to _arrayBufferWriter
System.Text.Json (18)
System\Text\Json\Writer\Utf8JsonWriter.cs (18)
283
_arrayBufferWriter
?.Clear();
311
if (
_arrayBufferWriter
== null)
317
_arrayBufferWriter
.Clear();
360
Debug.Assert(_output is null && _stream is null &&
_arrayBufferWriter
is null);
415
Debug.Assert(
_arrayBufferWriter
!= null);
418
_arrayBufferWriter
.Advance(BytesPending);
422
_stream.Write(
_arrayBufferWriter
.WrittenSpan);
427
BytesCommitted +=
_arrayBufferWriter
.WrittenCount;
428
_arrayBufferWriter
.Clear();
524
Debug.Assert(
_arrayBufferWriter
!= null);
527
_arrayBufferWriter
.Advance(BytesPending);
530
await _stream.WriteAsync(
_arrayBufferWriter
.WrittenMemory, cancellationToken).ConfigureAwait(false);
532
BytesCommitted +=
_arrayBufferWriter
.WrittenCount;
533
_arrayBufferWriter
.Clear();
1187
Debug.Assert(
_arrayBufferWriter
!= null);
1192
_memory =
_arrayBufferWriter
.GetMemory(needed);
1222
Debug.Assert(
_arrayBufferWriter
!= null);
1223
_memory =
_arrayBufferWriter
.GetMemory(sizeHint);