PooledSpan.Create Method
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.
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>