System::Buffers::ArrayPool class
Contents
[
Hide
]ArrayPool class
Provides a thread-safe pool for reusing managed array instances (ArrayPtr
template<typename T>class ArrayPool : public System::Object
| Parameter | Description |
|---|---|
| T | The type of elements held by pooled arrays. |
Methods
| Method | Description |
|---|---|
| explicit ArrayPool(int32_t, int32_t) | Creates an ArrayPool instance. |
| static Create(int32_t, int32_t) | Creates a new pool instance with custom configuration options. |
| static get_Shared() | Retrieves the process-wide shared pool instance. The instance is created lazily on first access and configured with the default options. |
| Rent(int32_t) | Obtains a buffer that is at least minimumLength long. |
| Return(const ArrayPtr<T>&, bool) | Returns a previously rented buffer back to the pool. |
See Also
- Class Object
- Namespace System::Buffers
- Library Aspose.TeX for C++