initializes the length of the array
使用构造函数来创建一个指定对象类型的对象池,您可以传递一个回调函数,用于处理对象回收时的清理逻辑。
initializes the length of the array
The current number of available objects, the default is 0, it will gradually increase with the recycle of the object, the maximum will not exceed the size specified when the constructor is called.
Get an object from pool, if no available object in the pool, null will be returned.
Put an object into the pool.
Resize the pool.
Generated using TypeDoc
使用构造函数来创建一个指定对象类型的对象池,您可以传递一个回调函数,用于处理对象回收时的清理逻辑。
constructor