* Returns the current number of items in the buffer.
()
| 73 | * Returns the current number of items in the buffer. |
| 74 | */ |
| 75 | length(): number { |
| 76 | let length = this.end - this.begin; |
| 77 | if (length < 0) { |
| 78 | length = this.doubledCapacity + length; |
| 79 | } |
| 80 | return length; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Reports whether the buffer is full. |
no outgoing calls
no test coverage detected