10 types derived from PipeWriter
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http\HttpResponsePipeWriter.cs (1)
9
internal sealed class HttpResponsePipeWriter :
PipeWriter
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
14
internal sealed class ConcurrentPipeWriter :
PipeWriter
Internal\Infrastructure\StatusCheckPipeWriter.cs (1)
12
internal sealed class StatusCheckPipeWriter :
PipeWriter
Internal\Infrastructure\ThrowingPipeWriter.cs (1)
8
internal sealed class ThrowingPipeWriter :
PipeWriter
Internal\Infrastructure\WrappingPipeWriter.cs (1)
8
internal sealed class WrappingPipeWriter :
PipeWriter
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
10
internal sealed class CompletionPipeWriter :
PipeWriter
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13
internal sealed class PooledByteBufferWriter :
PipeWriter
, IDisposable
System.IO.Pipelines (2)
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (1)
13
private sealed class DefaultPipeWriter :
PipeWriter
, IValueTaskSource<FlushResult>
System\IO\Pipelines\StreamPipeWriter.cs (1)
12
internal sealed class StreamPipeWriter :
PipeWriter
System.Text.Json (1)
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
13
internal sealed class PooledByteBufferWriter :
PipeWriter
, IDisposable
201 references to PipeWriter
Microsoft.AspNetCore.Connections.Abstractions (2)
Features\IStatefulReconnectFeature.cs (2)
26
/// Called when a connection reconnects. The new <see cref="
PipeWriter
"/> that application code should write to is passed in.
28
public void OnReconnected(Func<
PipeWriter
, Task> notifyOnReconnect);
Microsoft.AspNetCore.Http (4)
Internal\DefaultHttpResponse.cs (1)
122
public override
PipeWriter
BodyWriter
StreamResponseBodyFeature.cs (3)
14
private
PipeWriter
? _pipeWriter;
52
public
PipeWriter
Writer
58
_pipeWriter =
PipeWriter
.Create(Stream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.Http.Abstractions (5)
Extensions\HttpResponseWritingExtensions.cs (2)
74
var
pipeWriter = response.BodyWriter;
100
private static void WriteMultiSegmentEncoded(
PipeWriter
writer, string text, Encoding encoding, Span<byte> destination, int encodedLength, int minimumByteSize)
HttpResponse.cs (3)
55
/// Gets the response body <see cref="
PipeWriter
"/>
57
/// <value>The response body <see cref="
PipeWriter
"/>.</value>
58
public virtual
PipeWriter
BodyWriter { get => throw new NotImplementedException(); }
Microsoft.AspNetCore.Http.Connections (6)
Internal\HttpConnectionContext.cs (2)
62
internal Func<
PipeWriter
, Task>? NotifyOnReconnect { get; set; }
733
public void OnReconnected(Func<
PipeWriter
, Task> notifyOnReconnect)
src\aspnetcore\src\SignalR\common\Shared\DuplexPipe.cs (2)
8
public DuplexPipe(PipeReader reader,
PipeWriter
writer)
16
public
PipeWriter
Output { get; }
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (2)
14
private readonly
PipeWriter
_pipeWriter;
16
public PipeWriterStream(
PipeWriter
pipeWriter)
Microsoft.AspNetCore.Http.Extensions (3)
HttpResponseJsonExtensions.cs (3)
188
PipeWriter
body,
285
PipeWriter
body,
331
static async Task WriteAsJsonAsyncSlow(
PipeWriter
body, object? value, Type type, JsonSerializerContext context,
Microsoft.AspNetCore.Http.Features (2)
IHttpResponseBodyFeature.cs (2)
19
/// A <see cref="
PipeWriter
"/> representing the response body, if any.
21
PipeWriter
Writer { get; }
Microsoft.AspNetCore.HttpLogging (3)
ResponseBufferingStream.cs (3)
17
private
PipeWriter
? _pipeAdapter;
89
public
PipeWriter
Writer => _pipeAdapter ??=
PipeWriter
.Create(Stream, _pipeWriterOptions);
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\SystemTextJsonOutputFormatter.cs (1)
90
var
responseWriter = httpContext.Response.BodyWriter;
Infrastructure\SystemTextJsonResultExecutor.cs (1)
68
var
responseWriter = response.BodyWriter;
Microsoft.AspNetCore.OutputCaching (3)
IOutputCacheBufferStore.cs (1)
22
ValueTask<bool> TryGetAsync(string key,
PipeWriter
destination, CancellationToken cancellationToken);
OutputCacheEntry.cs (1)
124
public ValueTask CopyToAsync(
PipeWriter
destination, CancellationToken cancellationToken)
RecyclableReadOnlySequenceSegment.cs (1)
102
public static async ValueTask CopyToAsync(ReadOnlySequence<byte> source,
PipeWriter
destination, CancellationToken cancellationToken)
Microsoft.AspNetCore.ResponseCaching (2)
CacheEntry\CachedResponseBody.cs (2)
20
public async Task CopyToAsync(
PipeWriter
destination, CancellationToken cancellationToken)
34
private static void Copy(byte[] segment,
PipeWriter
destination)
Microsoft.AspNetCore.ResponseCompression (3)
ResponseCompressionBody.cs (3)
25
private
PipeWriter
? _pipeAdapter;
86
public
PipeWriter
Writer
92
_pipeAdapter =
PipeWriter
.Create(Stream, new StreamPipeWriterOptions(leaveOpen: true));
Microsoft.AspNetCore.Server.Kestrel.Core (56)
Internal\Http\ChunkWriter.cs (2)
137
internal static int WriteBeginChunkBytes(this ref BufferWriter<
PipeWriter
> start, int dataCount)
147
internal static void WriteEndChunkBytes(this ref BufferWriter<
PipeWriter
> start)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (2)
205
private bool Read(ReadOnlySequence<byte> readableBuffer,
PipeWriter
writableBuffer, out SequencePosition consumed, out SequencePosition examined)
431
private void ReadChunkedData(in ReadOnlySequence<byte> buffer,
PipeWriter
writableBuffer, out SequencePosition consumed, out SequencePosition examined)
Internal\Http\Http1Connection.cs (1)
1092
var
output = _context.Transport.Output;
Internal\Http\Http1OutputProducer.cs (14)
72
PipeWriter
pipeWriter,
126
var writer = new BufferWriter<
PipeWriter
>(_pipeWriter);
178
var writer = new BufferWriter<
PipeWriter
>(producer._pipeWriter);
310
var writer = new BufferWriter<
PipeWriter
>(_pipeWriter);
319
private void CommitChunkInternal(ref BufferWriter<
PipeWriter
> writer, ReadOnlySpan<byte> buffer)
348
var writer = new BufferWriter<
PipeWriter
>(buffer);
353
private void WriteResponseHeadersInternal(ref BufferWriter<
PipeWriter
> writer, int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode)
371
private void WriteDataWrittenBeforeHeaders(ref BufferWriter<
PipeWriter
> writer)
507
var writer = new BufferWriter<
PipeWriter
>(_pipeWriter);
527
var writer = new BufferWriter<
PipeWriter
>(_pipeWriter);
564
var writer = new BufferWriter<
PipeWriter
>(_pipeWriter);
570
ref BufferWriter<
PipeWriter
> writer,
620
var writer = new BufferWriter<
PipeWriter
>(_pipeWriter);
646
private void WriteCurrentChunkMemoryToPipeWriter(ref BufferWriter<
PipeWriter
> writer)
Internal\Http\HttpHeaders.Generated.cs (1)
14809
internal void CopyToFast(ref BufferWriter<
PipeWriter
> output)
Internal\Http\HttpProtocol.cs (1)
292
public
PipeWriter
ResponseBodyPipeWriter { get; set; } = default!;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
228
PipeWriter
IHttpResponseBodyFeature.Writer => ResponseBodyPipeWriter;
Internal\Http\HttpResponseHeaders.cs (3)
38
internal void CopyTo(ref BufferWriter<
PipeWriter
> buffer)
57
static void CopyExtraHeaders(ref BufferWriter<
PipeWriter
> buffer, Dictionary<string, StringValues> headers)
74
static void CopyExtraHeadersCustomEncoding(ref BufferWriter<
PipeWriter
> buffer, Dictionary<string, StringValues> headers,
Internal\Http2\Http2Connection.cs (1)
1890
private async Task CopyPipeAsync(PipeReader reader,
PipeWriter
writer)
Internal\Http2\Http2FrameWriter.cs (2)
110
PipeWriter
outputPipeWriter,
1029
internal static void WriteHeader(Http2Frame frame,
PipeWriter
output)
Internal\Http3\Http3FrameWriter.cs (3)
45
private
PipeWriter
_outputWriter = default!;
81
public void Reset(
PipeWriter
output, string connectionId)
279
internal static int WriteHeader(Http3FrameType frameType, long frameLength,
PipeWriter
output)
Internal\Http3\Http3OutputProducer.cs (1)
25
private readonly
PipeWriter
_pipeWriter;
Internal\Infrastructure\BodyControl.cs (1)
58
public (Stream request, Stream response, PipeReader reader,
PipeWriter
writer) Start(MessageBody body)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (2)
25
private readonly
PipeWriter
_innerPipeWriter;
53
public ConcurrentPipeWriter(
PipeWriter
innerPipeWriter, MemoryPool<byte> pool, Lock sync)
Internal\Infrastructure\PipeWriterHelpers\TimingPipeFlusher.cs (2)
19
private
PipeWriter
_writer = default!;
31
public void Initialize(
PipeWriter
output)
Internal\Infrastructure\StatusCheckPipeWriter.cs (2)
14
private readonly
PipeWriter
_inner;
17
public StatusCheckPipeWriter(
PipeWriter
inner)
Internal\Infrastructure\WrappingPipeWriter.cs (3)
10
private
PipeWriter
_inner;
12
public WrappingPipeWriter(
PipeWriter
inner)
17
public void SetInnerPipe(
PipeWriter
inner)
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (7)
32
public static void CopyTo(in this ReadOnlySequence<byte> buffer,
PipeWriter
pipeWriter)
44
private static void CopyToMultiSegment(in ReadOnlySequence<byte> buffer,
PipeWriter
pipeWriter)
110
internal static void WriteAscii(ref this BufferWriter<
PipeWriter
> buffer, string data)
132
internal static void WriteNumeric(ref this BufferWriter<
PipeWriter
> bufferWriter, ulong number)
171
private static void WriteNumericMultiWrite(ref this BufferWriter<
PipeWriter
> buffer, ulong number)
191
internal static void WriteEncoded(ref this BufferWriter<
PipeWriter
> buffer, string data, Encoding encoding)
213
private static void WriteEncodedMultiWrite(ref this BufferWriter<
PipeWriter
> buffer, string data, int encodedLength, Encoding encoding)
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17
/// two <see cref="PipeReader"/>s and two <see cref="
PipeWriter
"/>s - it is only how they are grouped that differs.
21
public DuplexPipe(PipeReader reader,
PipeWriter
writer)
29
public
PipeWriter
Output { get; }
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (2)
20
private readonly
PipeWriter
_output;
24
public DuplexPipeStream(PipeReader input,
PipeWriter
output, bool throwOnCancelled = false)
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStreamAdapter.cs (2)
31
Output =
PipeWriter
.Create(stream, writerOptions);
38
public
PipeWriter
Output { get; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (7)
Internal\QuicStreamContext.cs (2)
74
private
PipeWriter
Input => Application.Output;
210
var
input = Input;
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeWriter.cs (2)
12
private readonly
PipeWriter
_inner;
18
public CompletionPipeWriter(
PipeWriter
inner)
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipe.cs (3)
17
/// two <see cref="PipeReader"/>s and two <see cref="
PipeWriter
"/>s - it is only how they are grouped that differs.
21
public DuplexPipe(PipeReader reader,
PipeWriter
writer)
29
public
PipeWriter
Output { get; }
Microsoft.AspNetCore.SignalR.Core (2)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (2)
42
private
PipeWriter
_writer;
256
internal async Task ResendAsync(
PipeWriter
writer)
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
162
public
PipeWriter
Writer => _original.Writer;
Microsoft.AspNetCore.WebUtilities (3)
FileBufferingWriteStream.cs (2)
217
/// <param name="destination">The <see cref="
PipeWriter
" /> to drain buffered contents to.</param>
221
public async Task DrainBufferAsync(
PipeWriter
destination, CancellationToken cancellationToken = default)
PagedByteBuffer.cs (1)
81
public async Task MoveToAsync(
PipeWriter
writer, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Checksum.cs (1)
92
public void WriteTo(
PipeWriter
pipeWriter)
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpResponseBodyReader.cs (2)
130
private static async ValueTask<string> BufferStreamAndWriteToPipeAsync(Stream stream,
PipeWriter
writer, int bufferSize, CancellationToken cancellationToken)
146
private static async Task WriteStreamToPipeAsync(Stream stream,
PipeWriter
writer, CancellationToken cancellationToken)
System.IO.Pipelines (64)
System\IO\Pipelines\FlushResult.cs (10)
6
/// <summary>Result returned by <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> call.</summary>
12
/// <param name="isCanceled"><see langword="true" /> to indicate the current <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="System.IO.Pipelines.FlushResult" /> was canceled by <see cref="System.IO.Pipelines.
PipeWriter
.CancelPendingFlush" />; otherwise, <see langword="false" />.</param>
13
/// <param name="isCompleted"><see langword="true" /> to indicate the reader is no longer reading data written to the <see cref="System.IO.Pipelines.
PipeWriter
" />.</param>
29
/// <summary>Gets a value that indicates whether the current <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> operation was canceled by <see cref="System.IO.Pipelines.
PipeWriter
.CancelPendingFlush" />.</summary>
30
/// <value><see langword="true" /> if the current <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> operation was canceled by <see cref="System.IO.Pipelines.
PipeWriter
.CancelPendingFlush" />; otherwise, <see langword="false" />.</value>
33
/// <summary>Gets a value that indicates the reader is no longer reading data written to the <see cref="System.IO.Pipelines.
PipeWriter
" />.</summary>
34
/// <value><see langword="true" /> if the reader is no longer reading data written to the <see cref="System.IO.Pipelines.
PipeWriter
" />; otherwise, <see langword="false" />.</value>
System\IO\Pipelines\IDuplexPipe.cs (2)
12
/// <summary>Gets the <see cref="System.IO.Pipelines.
PipeWriter
" /> half of the duplex pipe.</summary>
13
PipeWriter
Output { get; }
System\IO\Pipelines\Pipe.cs (4)
14
/// <summary>The default <see cref="System.IO.Pipelines.
PipeWriter
" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary>
1168
/// <summary>Gets the <see cref="System.IO.Pipelines.
PipeWriter
" /> for this pipe.</summary>
1169
/// <value>A <see cref="System.IO.Pipelines.
PipeWriter
" /> instance for this pipe.</value>
1170
public
PipeWriter
Writer => _writer;
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (1)
10
/// <summary>The default <see cref="System.IO.Pipelines.
PipeWriter
" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary>
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (1)
10
/// <summary>The default <see cref="System.IO.Pipelines.
PipeWriter
" /> and <see cref="System.IO.Pipelines.PipeReader" /> implementation.</summary>
System\IO\Pipelines\PipeOptions.cs (10)
21
/// <param name="writerScheduler">The <see cref="System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="System.IO.Pipelines.
PipeWriter
" /> callbacks and async continuations.</param>
22
/// <param name="pauseWriterThreshold">The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> before <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> starts blocking. A value of zero prevents <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> from ever blocking, effectively making the number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> unlimited.</param>
23
/// <param name="resumeWriterThreshold">The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</param>
92
/// <summary>Gets the number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> starts blocking.</summary>
93
/// <value>The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> starts blocking.</value>
96
/// <summary>Gets the number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</summary>
97
/// <value>The number of bytes in the <see cref="System.IO.Pipelines.Pipe" /> when <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</value>
104
/// <summary>Gets the <see cref="System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="System.IO.Pipelines.
PipeWriter
" /> callbacks and async continuations.</summary>
105
/// <value>A <see cref="System.IO.Pipelines.PipeScheduler" /> object used to execute <see cref="System.IO.Pipelines.
PipeWriter
" /> callbacks and async continuations.</value>
System\IO\Pipelines\PipeReader.cs (3)
141
/// <summary>Registers a callback that executes when the <see cref="System.IO.Pipelines.
PipeWriter
" /> side of the pipe is completed.</summary>
173
/// <summary>Asynchronously reads the bytes from the <see cref="System.IO.Pipelines.PipeReader" /> and writes them to the specified <see cref="System.IO.Pipelines.
PipeWriter
" />, using a specified buffer size and cancellation token.</summary>
177
public virtual Task CopyToAsync(
PipeWriter
destination, CancellationToken cancellationToken = default)
System\IO\Pipelines\PipeScheduler.cs (1)
8
/// <summary>Abstraction for running <see cref="System.IO.Pipelines.PipeReader" /> and <see cref="System.IO.Pipelines.
PipeWriter
" /> callbacks and continuations.</summary>
System\IO\Pipelines\PipeWriter.cs (22)
15
/// <summary>Marks the <see cref="System.IO.Pipelines.
PipeWriter
" /> as being complete, meaning no more items will be written to it.</summary>
35
/// <summary>Cancels the pending <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> or <see cref="System.IO.Pipelines.
PipeWriter
.WriteAsync(System.ReadOnlyMemory{byte},System.Threading.CancellationToken)" /> operation without causing the operation to throw and without completing the <see cref="System.IO.Pipelines.
PipeWriter
" />. If there is no pending operation, this cancels the next operation.</summary>
36
/// <remarks>The canceled <see cref="System.IO.Pipelines.
PipeWriter
.FlushAsync(System.Threading.CancellationToken)" /> or <see cref="System.IO.Pipelines.
PipeWriter
.WriteAsync(System.ReadOnlyMemory{byte},System.Threading.CancellationToken)" /> operation returns a <see cref="System.IO.Pipelines.FlushResult" /> where <see cref="System.IO.Pipelines.FlushResult.IsCanceled" /> is <see langword="true" />.</remarks>
39
/// <summary>Gets a value that indicates whether the current <see cref="System.IO.Pipelines.
PipeWriter
" /> supports reporting the count of unflushed bytes.</summary>
40
/// <value><see langword="true" />If a class derived from <see cref="System.IO.Pipelines.
PipeWriter
" /> does not support getting the unflushed bytes, calls to <see cref="System.IO.Pipelines.
PipeWriter
.UnflushedBytes" /> throw <see cref="System.NotImplementedException" />.</value>
61
/// <summary>Notifies the <see cref="System.IO.Pipelines.
PipeWriter
" /> that <paramref name="bytes" /> bytes were written to the output <see cref="System.Span{T}" /> or <see cref="System.Memory{T}" />. You must request a new buffer after calling <see cref="System.IO.Pipelines.
PipeWriter
.Advance(int)" /> to continue writing more data; you cannot write to a previously acquired buffer.</summary>
70
/// You must request a new buffer after calling <see cref="System.IO.Pipelines.
PipeWriter
.Advance" /> to continue writing more data; you cannot write to a previously acquired buffer.</remarks>
79
/// You must request a new buffer after calling <see cref="System.IO.Pipelines.
PipeWriter
.Advance(int)" /> to continue writing more data; you cannot write to a previously acquired buffer.</remarks>
83
/// <summary>Returns a <see cref="System.IO.Stream" /> representation of the <see cref="System.IO.Pipelines.
PipeWriter
" />.</summary>
84
/// <param name="leaveOpen">An optional flag that indicates whether disposing the returned <see cref="System.IO.Stream" /> leaves <see cref="System.IO.Pipelines.
PipeWriter
" /> open (<see langword="true" />) or completes <see cref="System.IO.Pipelines.
PipeWriter
" /> (<see langword="false" />).</param>
85
/// <returns>A stream that represents the <see cref="System.IO.Pipelines.
PipeWriter
" />.</returns>
100
/// <summary>Creates a <see cref="System.IO.Pipelines.
PipeWriter
" /> wrapping the specified <see cref="System.IO.Stream" />.</summary>
103
/// <returns>A <see cref="System.IO.Pipelines.
PipeWriter
" /> that wraps the <see cref="System.IO.Stream" />.</returns>
104
public static
PipeWriter
Create(Stream stream, StreamPipeWriterOptions? writerOptions = null)
119
/// <summary>Asynchronously reads the bytes from the specified stream and writes them to the <see cref="System.IO.Pipelines.
PipeWriter
" />.</summary>
154
/// <exception cref="System.NotImplementedException">The <see cref="System.IO.Pipelines.
PipeWriter
"/> does not support getting the unflushed byte count.</exception>
System\IO\Pipelines\PipeWriterStream.cs (2)
12
private readonly
PipeWriter
_pipeWriter;
14
public PipeWriterStream(
PipeWriter
pipeWriter, bool leaveOpen)
System\IO\Pipelines\StreamPipeExtensions.cs (2)
12
/// <summary>Asynchronously reads the bytes from the <see cref="System.IO.Stream" /> and writes them to the specified <see cref="System.IO.Pipelines.
PipeWriter
" />, using a cancellation token.</summary>
17
public static Task CopyToAsync(this Stream source,
PipeWriter
destination, CancellationToken cancellationToken = default)
System\IO\Pipelines\StreamPipeReader.cs (1)
308
public override async Task CopyToAsync(
PipeWriter
destination, CancellationToken cancellationToken = default)
System\IO\Pipelines\StreamPipeWriterOptions.cs (5)
8
/// <summary>Represents a set of options for controlling the creation of the <see cref="System.IO.Pipelines.
PipeWriter
" />.</summary>
15
/// <summary>Initializes a <see cref="System.IO.Pipelines.StreamPipeWriterOptions" /> instance, optionally specifying a memory pool, a minimum buffer size, and whether the underlying stream should be left open after the <see cref="System.IO.Pipelines.
PipeWriter
" /> completes.</summary>
18
/// <param name="leaveOpen"><see langword="true" /> to leave the underlying stream open after the <see cref="System.IO.Pipelines.
PipeWriter
" /> completes; <see langword="false" /> to close it. The default is <see langword="false" />.</param>
39
/// <summary>Gets the value that indicates if the underlying stream should be left open after the <see cref="System.IO.Pipelines.
PipeWriter
" /> completes.</summary>
40
/// <value><see langword="true" /> if the underlying stream should be left open after the <see cref="System.IO.Pipelines.
PipeWriter
" /> completes; otherwise, <see langword="false" />.</value>
System.Text.Json (30)
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (22)
18
/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.
PipeWriter
"/>.
21
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.
PipeWriter
"/> to write to.</param>
30
PipeWriter
utf8Json,
43
/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.
PipeWriter
"/>.
46
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.
PipeWriter
"/> to write to.</param>
61
PipeWriter
utf8Json,
73
/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.
PipeWriter
"/>.
75
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.
PipeWriter
"/> to write to.</param>
87
PipeWriter
utf8Json,
100
/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.
PipeWriter
"/>.
102
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.
PipeWriter
"/> to write to.</param>
119
PipeWriter
utf8Json,
135
/// Converts the provided value to UTF-8 encoded JSON text and write it to the <see cref="System.IO.Pipelines.
PipeWriter
"/>.
137
/// <param name="utf8Json">The UTF-8 <see cref="System.IO.Pipelines.
PipeWriter
"/> to write to.</param>
156
PipeWriter
utf8Json,
171
/// Serializes each element of an <see cref="IAsyncEnumerable{TValue}"/> to the <see cref="
PipeWriter
"/>
175
/// <param name="utf8Json">The <see cref="
PipeWriter
"/> to write to.</param>
195
PipeWriter
utf8Json,
215
/// Serializes each element of an <see cref="IAsyncEnumerable{TValue}"/> to the <see cref="
PipeWriter
"/>
219
/// <param name="utf8Json">The <see cref="
PipeWriter
"/> to write to.</param>
237
PipeWriter
utf8Json,
258
PipeWriter
utf8Json,
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1039
internal abstract Task SerializeAsObjectAsync(
PipeWriter
pipeWriter, object? rootValue, int flushThreshold, CancellationToken cancellationToken);
1041
internal abstract Task SerializeAsObjectAsync(
PipeWriter
utf8Json, object? rootValue, CancellationToken cancellationToken);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (4)
74
internal Task SerializeAsync(
PipeWriter
utf8Json,
86
PipeWriter
pipeWriter,
343
internal sealed override Task SerializeAsObjectAsync(
PipeWriter
pipeWriter, object? rootValue, int flushThreshold, CancellationToken cancellationToken)
349
internal sealed override Task SerializeAsObjectAsync(
PipeWriter
utf8Json, object? rootValue, CancellationToken cancellationToken)
System\Text\Json\Serialization\WriteStack.cs (1)
92
public
PipeWriter
? PipeWriter;
System\Text\Json\ThrowHelper.Serialization.cs (1)
1013
public static void ThrowInvalidOperationException_PipeWriterDoesNotImplementUnflushedBytes(
PipeWriter
pipeWriter)