Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CachedArray<T>

缓存数组 该数据结构内存只增不减,适用于处理内存常驻递增的分配策略

Type parameters

  • T

Hierarchy

  • CachedArray

Index

Constructors

constructor

  • newCachedArray(length: number, compareFn?: undefined | function): CachedArray

Properties

Private _compareFn

_compareFn: any

比较函数

array

array: T[]

实际存储的数据内容

length

length: number = 0

数组长度

Methods

clear

  • clear(): void

concat

  • concat(array: T[]): void

fastRemove

  • fastRemove(idx: number): void

get

  • get(idx: number): T

indexOf

  • indexOf(val: T): number

pop

  • pop(): T | undefined

push

  • push(item: T): void

sort

  • sort(): void

Generated using TypeDoc