(index: number, value: T)
| 63 | } |
| 64 | |
| 65 | protected set(index: number, value: T) { |
| 66 | if (index < 0) { |
| 67 | throw new RangeError('Can\'t set item at a negative index.'); |
| 68 | } |
| 69 | this.data[index % this.capacity] = value; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Returns the current number of items in the buffer. |
no outgoing calls
no test coverage detected