()
| 300 | } |
| 301 | |
| 302 | private _getBit(): boolean { |
| 303 | if (this._nbits === 0) { |
| 304 | this._nbits = 8; |
| 305 | this._bits = this._input.readByte(); |
| 306 | } |
| 307 | const b: boolean = (this._bits & 1) === 1; |
| 308 | this._nbits--; |
| 309 | this._bits = this._bits >> 1; |
| 310 | return b; |
| 311 | } |
| 312 | |
| 313 | private _getBits(n: number): number { |
| 314 | while (this._nbits < n) { |
no test coverage detected