ArrayPool()

ArrayPool::ArrayPool(int32_t, int32_t) constructor

Creates an ArrayPool instance.

System::Buffers::ArrayPool<T>::ArrayPool(int32_t maxArrayLength=1024 *1024, int32_t maxArraysPerBucket=50)

Arguments

ParameterTypeDescription
maxArrayLengthint32_tUpper bound of array lengths kept in this pool.
maxArraysPerBucketint32_tMaximum number of kept arrays in a single bucket.

Exceptions

ExceptionDescription
ArgumentOutOfRangeExceptionif any argument is not positive.

See Also