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

Method addByte

packages/alphatab/src/zip/Inflate.ts:73–79  ·  view source on GitHub ↗
(c: number)

Source from the content-addressed store, hash-verified

71 }
72
73 public addByte(c: number): void {
74 if (this.pos === InflateWindow._bufferSize) {
75 this.slide();
76 }
77 this.buffer[this.pos] = c;
78 this.pos++;
79 }
80
81 public getLastChar(): number {
82 return this.buffer[this.pos - 1];

Callers 1

_addByteMethod · 0.80

Calls 1

slideMethod · 0.95

Tested by

no test coverage detected