()
| 191 | } |
| 192 | |
| 193 | checkOverflow() { |
| 194 | if ( |
| 195 | this.currentPosition >= /** @type {Buffer} */ (this.currentBuffer).length |
| 196 | ) { |
| 197 | this.currentPosition = 0; |
| 198 | this.nextDataItem(); |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * Checks whether n bytes are available in the current buffer. |
no test coverage detected