共用方式為


PooledSpan<T> 建構函式

定義

多載

PooledSpan<T>(IEnumerable<T>, Boolean, ArrayPool<T>)

要求從提供的 複製專案的集區陣列 IEnumerable<T>

PooledSpan<T>(Int32, Boolean, ArrayPool<T>)

要求指定大小的集區陣列。

PooledSpan<T>(IEnumerable<T>, Boolean, ArrayPool<T>)

要求從提供的 複製專案的集區陣列 IEnumerable<T>

public PooledSpan (System.Collections.Generic.IEnumerable<T> original, bool clearWhenDisposed = false, System.Buffers.ArrayPool<T>? pool = default);
new Microsoft.VisualStudio.Utilities.PooledSpan<'T> : seq<'T> * bool * System.Buffers.ArrayPool<'T> -> Microsoft.VisualStudio.Utilities.PooledSpan<'T>
Public Sub New (original As IEnumerable(Of T), Optional clearWhenDisposed As Boolean = false, Optional pool As ArrayPool(Of T) = Nothing)

參數

original
IEnumerable<T>

要從中複製專案的可列舉。

clearWhenDisposed
Boolean

如果陣列中的專案應在傳回集區陣列之後設定為其預設值。

pool
ArrayPool<T>

要從中要求陣列的集區。

適用於

PooledSpan<T>(Int32, Boolean, ArrayPool<T>)

要求指定大小的集區陣列。

public PooledSpan (int minimumSize, bool clearWhenDisposed = false, System.Buffers.ArrayPool<T>? pool = default);
new Microsoft.VisualStudio.Utilities.PooledSpan<'T> : int * bool * System.Buffers.ArrayPool<'T> -> Microsoft.VisualStudio.Utilities.PooledSpan<'T>
Public Sub New (minimumSize As Integer, Optional clearWhenDisposed As Boolean = false, Optional pool As ArrayPool(Of T) = Nothing)

參數

minimumSize
Int32

數位的必要大小。

clearWhenDisposed
Boolean

如果陣列中的專案應在傳回集區陣列之後設定為其預設值。

pool
ArrayPool<T>

要從中要求陣列的集區。

適用於