* Consume the next byte if it matches the supplied value. * * @param {number} val
(val)
| 247 | * @param {number} val |
| 248 | */ |
| 249 | consumeIf(val) { |
| 250 | if (this.bytes[this.position] === val) { |
| 251 | this.position++; |
| 252 | this.bitPos = 0; |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Move forwards through the stream by the specified number of bytes. |
no outgoing calls
no test coverage detected