Freigeben über


PooledSpan.Create Method

Definition

Overloads

Create<T>(IEnumerable<T>, Boolean, ArrayPool<T>)
Create<T>(Int32, Boolean, ArrayPool<T>)

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

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

Type Parameters

T

Parameters

original
IEnumerable<T>
clearWhenDisposed
Boolean
pool
ArrayPool<T>

Returns

Applies to

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

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

Type Parameters

T

Parameters

minimumSize
Int32
clearWhenDisposed
Boolean
pool
ArrayPool<T>

Returns

Applies to