MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / _getBit

Method _getBit

packages/alphatab/src/zip/Inflate.ts:302–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 3

_inflateLoopMethod · 0.95
_getRevBitsMethod · 0.95
_applyHuffmanMethod · 0.95

Calls 1

readByteMethod · 0.65

Tested by

no test coverage detected