()
| 54 | return this.#a[this.#i++]; |
| 55 | } |
| 56 | getLength() { |
| 57 | let length = this.#a[this.#i++]; |
| 58 | if (length < 128) |
| 59 | return length; |
| 60 | |
| 61 | length &= 0x7F; |
| 62 | if (!length) |
| 63 | return -1; // indefinite length |
| 64 | |
| 65 | let result = 0; |
| 66 | while (length--) |
| 67 | result = (result << 8) | this.#a[this.#i++]; |
| 68 | |
| 69 | return result; |
| 70 | } |
| 71 | peek() { |
| 72 | return this.#a[this.#i]; |
| 73 | } |
no outgoing calls
no test coverage detected