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

Method _addDistOne

packages/alphatab/src/zip/Inflate.ts:284–289  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

282 }
283
284 private _addDistOne(n: number): void {
285 const c: number = this._window.getLastChar();
286 for (let i: number = 0; i < n; i++) {
287 this._addByte(c);
288 }
289 }
290
291 private _addByte(b: number): void {
292 this._window.addByte(b);

Callers 1

_inflateLoopMethod · 0.95

Calls 2

_addByteMethod · 0.95
getLastCharMethod · 0.80

Tested by

no test coverage detected