Create()

ArrayPool::Create(int32_t, int32_t) method

Creates a new pool instance with custom configuration options.

static SharedPtr<ArrayPool<T>> System::Buffers::ArrayPool<T>::Create(int32_t maxArrayLength, int32_t maxArraysPerBucket)

Arguments

ParameterTypeDescription
maxArrayLengthint32_tThe maximum array length that may be pooled.
maxArraysPerBucketint32_tThe maximum number of arrays kept in each bucket.

Return Value

An ArrayPool with the specified configuration.

See Also