2 writes to _stream
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
138
_stream
= stream;
191
_stream
= Stream.Null;
10 references to _stream
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (10)
150
if (
_stream
.CanSeek &&
_stream
.Position > 0)
261
_stream
.Close();
323
_stream
.Write(preamble);
346
_stream
.Write(byteBuffer.Slice(0, count));
351
_stream
.Flush();
371
public virtual Stream BaseStream =>
_stream
;
1007
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(preamble), cancellationToken).ConfigureAwait(false);
1017
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(byteBuffer, 0, count), cancellationToken).ConfigureAwait(false);
1025
await
_stream
.FlushAsync(cancellationToken).ConfigureAwait(false);