Class b2GrowableBuffer<T>
Constructors
constructor
-
Parameters
Properties
allocator
allocator: () => T
capacity
capacity: number = 0
count
count: number = 0
data
data: T[] = []
Methods
Append
-
Returns number
Data
-
Returns T[]
Free
-
Returns void
GetCapacity
-
Returns number
GetCount
-
Returns number
Grow
-
Returns void
RemoveIf
- RemoveIf(pred: (t: T) => boolean): void
-
Parameters
-
pred: (t: T) => boolean
-
-
Parameters
Returns boolean
Returns void
Reserve
- Reserve(newCapacity: number): void
-
Parameters
Returns void
SetCount
- SetCount(newCount: number): void
-
Parameters
Returns void
Shorten
- Shorten(newEnd: number): void
-
Parameters
Returns void
Unique
- Unique(pred: (a: T, b: T) => boolean): void
-
Parameters
-
pred: (a: T, b: T) => boolean
-
-
Parameters
Returns boolean
Returns void