MCPcopy Create free account
hub / github.com/p2r3/convert / add

Method add

src/PriorityQueue.ts:130–142  ·  view source on GitHub ↗
(item: T)

Source from the content-addressed store, hash-verified

128 }
129
130 public add(item: T): boolean {
131 const i = this._size;
132 if (i >= this._queue.length) {
133 this.grow();
134 }
135 this._size = i + 1;
136 if (i === 0) {
137 this._queue[0] = item;
138 } else {
139 this.siftup(i, item);
140 }
141 return true;
142 }
143
144 public poll(): T | null {
145 if (this._size === 0) {

Callers 13

searchPathMethod · 0.95
doConvertMethod · 0.80
rotateFromSourceAnglesFunction · 0.80
buildWallsMethod · 0.80
playbackTickHandlerMethod · 0.80
initMethod · 0.80
doConvertMethod · 0.80
doConvertMethod · 0.80
decodeAsepriteFunction · 0.80
initMethod · 0.80
doConvertMethod · 0.80
constructorMethod · 0.80

Calls 2

growMethod · 0.95
siftupMethod · 0.95

Tested by

no test coverage detected