System::Buffers::ArrayPool::Return method
ArrayPool::Return method
Returns a previously rented buffer back to the pool.
void System::Buffers::ArrayPool<T>::Return(const ArrayPtr<T> &array, bool clearArray=false)
| Parameter | Type | Description |
|---|---|---|
| array | const ArrayPtr<T>& | The buffer obtained previously from Rent(). |
| clearArray | bool | If true, the buffer contents are cleared before pooling. |
Remarks
Arrays whose length does not match this pool’s configuration (e.g. those that were allocated by Rent() beyond m_maxArrayLength, or come from another pool) are not pooled and are simply released by the reference counting / GC mechanism.
See Also
- Typedef ArrayPtr
- Class ArrayPool
- Namespace System::Buffers
- Library Aspose.TeX for C++