StreamPipeWriterOptions(MemoryPool<Byte>, Int32, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public StreamPipeWriterOptions (System.Buffers.MemoryPool<byte>? pool = default, int minimumBufferSize = -1, bool leaveOpen = false);
new System.IO.Pipelines.StreamPipeWriterOptions : System.Buffers.MemoryPool<byte> * int * bool -> System.IO.Pipelines.StreamPipeWriterOptions
Public Sub New (Optional pool As MemoryPool(Of Byte) = Nothing, Optional minimumBufferSize As Integer = -1, Optional leaveOpen As Boolean = false)
Parameters
- pool
- MemoryPool<Byte>
The memory pool to use when allocating memory. The default value is null
.
- minimumBufferSize
- Int32
The minimum buffer size to use when renting memory from the pool
. The default value is 4096.
- leaveOpen
- Boolean
true
to leave the underlying stream open after the PipeWriter completes; false
to close it. The default is false
.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈