Get entry by index (0 = oldest) — used by network response matching
(index: number)
| 77 | |
| 78 | /** Get entry by index (0 = oldest) — used by network response matching */ |
| 79 | get(index: number): T | undefined { |
| 80 | if (index < 0 || index >= this._size) return undefined; |
| 81 | return this.buffer[(this.head + index) % this.capacity]; |
| 82 | } |
| 83 | |
| 84 | /** Set entry by index (0 = oldest) — used by network response matching */ |
| 85 | set(index: number, entry: T): void { |
no outgoing calls