The allocator of elements in pool, it's invoked directly without new
Initial pool size
The underlying array of all pool elements.
The length of the object pool.
Expand the object pool, the size will be increment to current size times two, and fills with new created elements.
Remove an element of the object pool. This will also decrease size of the pool
The index of the element to be removed
Resets the object pool. Only changes the length to 0
Resize the object poo, and fills with new created elements.
The new size of the pool
Generated using TypeDoc
Recyclable object pool. It's designed to be entirely reused each time. There is no put and get method, each time you get the data, you can use all elements as new. You shouldn't simultaneously use the same RecyclePool in more than two overlapped logic. Its size can be automatically incremented or manually resized.
Pool