<PackageReference Include="System.IO.Pipelines" Version="9.0.10" />

StreamPipeWriterOptions

Represents a set of options for controlling the creation of the PipeWriter.
public bool LeaveOpen { get; }

Gets the value that indicates if the underlying stream should be left open after the PipeWriter completes.

public int MinimumBufferSize { get; }

Gets the minimum buffer size to use when renting memory from the Pool.

public MemoryPool<byte> Pool { get; }

Gets the MemoryPool<T> to use when allocating memory.

public StreamPipeWriterOptions(MemoryPool<byte> pool = null, int minimumBufferSize = -1, bool leaveOpen = false)

Initializes a StreamPipeWriterOptions instance, optionally specifying a memory pool, a minimum buffer size, and whether the underlying stream should be left open after the PipeWriter completes.