(entry: T)
| 33 | } |
| 34 | |
| 35 | push(entry: T): void { |
| 36 | this.store[this.writeIndex] = entry; |
| 37 | this.writeIndex = (this.writeIndex + 1) % this.capacity; |
| 38 | if (this.writeIndex === 0) this.filled = true; |
| 39 | } |
| 40 | |
| 41 | read(): T[] { |
| 42 | const out: T[] = []; |
no outgoing calls