StreamPipeReaderOptions 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| StreamPipeReaderOptions(MemoryPool<Byte>, Int32, Int32, Boolean) |
StreamPipeReaderOptions初始化实例,可以选择指定内存池、最小缓冲区大小、最小读取大小,以及基础流在完成后是否应保持打开PipeReader状态。 |
| StreamPipeReaderOptions(MemoryPool<Byte>, Int32, Int32, Boolean, Boolean) |
StreamPipeReaderOptions初始化实例,可以选择指定内存池、最小缓冲区大小、最小读取大小,以及基础流在完成后是否应保持打开PipeReader状态。 |
StreamPipeReaderOptions(MemoryPool<Byte>, Int32, Int32, Boolean)
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
StreamPipeReaderOptions初始化实例,可以选择指定内存池、最小缓冲区大小、最小读取大小,以及基础流在完成后是否应保持打开PipeReader状态。
public:
StreamPipeReaderOptions(System::Buffers::MemoryPool<System::Byte> ^ pool, int bufferSize, int minimumReadSize, bool leaveOpen);
public StreamPipeReaderOptions(System.Buffers.MemoryPool<byte>? pool, int bufferSize, int minimumReadSize, bool leaveOpen);
new System.IO.Pipelines.StreamPipeReaderOptions : System.Buffers.MemoryPool<byte> * int * int * bool -> System.IO.Pipelines.StreamPipeReaderOptions
Public Sub New (pool As MemoryPool(Of Byte), bufferSize As Integer, minimumReadSize As Integer, leaveOpen As Boolean)
参数
- pool
- MemoryPool<Byte>
分配内存时要使用的内存池。 默认值为 null。
- bufferSize
- Int32
从中 pool租用内存时要使用的最小缓冲区大小。 默认值为 4096。
- minimumReadSize
- Int32
分配新缓冲区之前缓冲区中剩余字节的阈值。 默认值为 1024。
- leaveOpen
- Boolean
true 如果基础流在完成后保持打开 PipeReader 状态, false 请将其关闭。 默认值为 false。
适用于
StreamPipeReaderOptions(MemoryPool<Byte>, Int32, Int32, Boolean, Boolean)
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
- Source:
- StreamPipeReaderOptions.cs
StreamPipeReaderOptions初始化实例,可以选择指定内存池、最小缓冲区大小、最小读取大小,以及基础流在完成后是否应保持打开PipeReader状态。
public StreamPipeReaderOptions(System.Buffers.MemoryPool<byte>? pool = default, int bufferSize = -1, int minimumReadSize = -1, bool leaveOpen = false, bool useZeroByteReads = false);
new System.IO.Pipelines.StreamPipeReaderOptions : System.Buffers.MemoryPool<byte> * int * int * bool * bool -> System.IO.Pipelines.StreamPipeReaderOptions
Public Sub New (Optional pool As MemoryPool(Of Byte) = Nothing, Optional bufferSize As Integer = -1, Optional minimumReadSize As Integer = -1, Optional leaveOpen As Boolean = false, Optional useZeroByteReads As Boolean = false)
参数
- pool
- MemoryPool<Byte>
分配内存时要使用的内存池。 默认值为 null。
- bufferSize
- Int32
从中 pool租用内存时要使用的最小缓冲区大小。 默认值为 4096。
- minimumReadSize
- Int32
分配新缓冲区之前缓冲区中剩余字节的阈值。 默认值为 1024。
- leaveOpen
- Boolean
true 如果基础流在完成后保持打开 PipeReader 状态, false 请将其关闭。 默认值为 false。
- useZeroByteReads
- Boolean
true 如果在分配内存之前应向基础流发出具有空缓冲区的读取,则为否则,为 false.