Constructors
constructor
- newCachedArray(length: number, compareFn?: undefined | function): CachedArray
-
Parameters
-
length: number
-
Optional compareFn: undefined | function
Properties
Private _compareFn
_compareFn: any
length
length: number = 0
Methods
fastRemove
- fastRemove(idx: number): void
indexOf
-
Parameters
Returns number
缓存数组 该数据结构内存只增不减,适用于处理内存常驻递增的分配策略