* Reports whether the buffer is full. * @returns true if the number of items in the buffer equals its capacity, and * false otherwise.
()
| 86 | * false otherwise. |
| 87 | */ |
| 88 | isFull() { |
| 89 | return this.length() === this.capacity; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Reports whether the buffer is empty. |