6 writes to _arrayBufferWriter
System.Text.Json (6)
System\Text\Json\Writer\Utf8JsonWriter.cs (6)
145
_arrayBufferWriter
= new ArrayBufferWriter<byte>();
207
_arrayBufferWriter
= new ArrayBufferWriter<byte>();
238
_arrayBufferWriter
= null;
248
_arrayBufferWriter
= null;
367
_arrayBufferWriter
= null;
398
_arrayBufferWriter
= null;
18 references to _arrayBufferWriter
System.Text.Json (18)
System\Text\Json\Writer\Utf8JsonWriter.cs (18)
177
_arrayBufferWriter
?.Clear();
205
if (
_arrayBufferWriter
== null)
211
_arrayBufferWriter
.Clear();
254
Debug.Assert(_output is null && _stream is null &&
_arrayBufferWriter
is null);
306
Debug.Assert(
_arrayBufferWriter
!= null);
309
_arrayBufferWriter
.Advance(BytesPending);
313
_stream.Write(
_arrayBufferWriter
.WrittenSpan);
323
BytesCommitted +=
_arrayBufferWriter
.WrittenCount;
324
_arrayBufferWriter
.Clear();
420
Debug.Assert(
_arrayBufferWriter
!= null);
423
_arrayBufferWriter
.Advance(BytesPending);
427
await _stream.WriteAsync(
_arrayBufferWriter
.WrittenMemory, cancellationToken).ConfigureAwait(false);
437
BytesCommitted +=
_arrayBufferWriter
.WrittenCount;
438
_arrayBufferWriter
.Clear();
1075
Debug.Assert(
_arrayBufferWriter
!= null);
1080
_memory =
_arrayBufferWriter
.GetMemory(needed);
1110
Debug.Assert(
_arrayBufferWriter
!= null);
1111
_memory =
_arrayBufferWriter
.GetMemory(sizeHint);