* Move to a specified position in the stream. * * @param {number} pos
(pos)
| 308 | * @param {number} pos |
| 309 | */ |
| 310 | moveTo(pos) { |
| 311 | if (pos < 0 || pos > this.length) |
| 312 | throw new Error("Cannot move to position " + pos + " in stream. Out of bounds."); |
| 313 | this.position = pos; |
| 314 | this.bitPos = 0; |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Returns true if there are more bytes left in the stream. |
no outgoing calls
no test coverage detected