ערוך

שתף באמצעות


ArrayPool<T>.Create Method

Definition

Overloads

Create()

Creates a new instance of the ArrayPool<T> class.

Create(Int32, Int32)

Creates a new instance of the ArrayPool<T> class using the specified configuration.

Create()

Source:
ArrayPool.cs
Source:
ArrayPool.cs
Source:
ArrayPool.cs

Creates a new instance of the ArrayPool<T> class.

public:
 static System::Buffers::ArrayPool<T> ^ Create();
public static System.Buffers.ArrayPool<T> Create ();
static member Create : unit -> System.Buffers.ArrayPool<'T>
Public Shared Function Create () As ArrayPool(Of T)

Returns

A new instance of the ArrayPool<T> class.

Applies to

Create(Int32, Int32)

Source:
ArrayPool.cs
Source:
ArrayPool.cs
Source:
ArrayPool.cs

Creates a new instance of the ArrayPool<T> class using the specified configuration.

public:
 static System::Buffers::ArrayPool<T> ^ Create(int maxArrayLength, int maxArraysPerBucket);
public static System.Buffers.ArrayPool<T> Create (int maxArrayLength, int maxArraysPerBucket);
static member Create : int * int -> System.Buffers.ArrayPool<'T>
Public Shared Function Create (maxArrayLength As Integer, maxArraysPerBucket As Integer) As ArrayPool(Of T)

Parameters

maxArrayLength
Int32

The maximum length of an array instance that may be stored in the pool.

maxArraysPerBucket
Int32

The maximum number of array instances that may be stored in each bucket in the pool. The pool groups arrays of similar lengths into buckets for faster access.

Returns

A new instance of the ArrayPool<T> class with the specified configuration.

Remarks

The instance of the ArrayPool<T> class created by this method will group arrays into buckets, with no more than maxArraysPerBucket in each bucket, and with those arrays not exceeding maxArrayLength in length.

Applies to