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

Method slide

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

Source from the content-addressed store, hash-verified

56 public pos: number = 0;
57
58 public slide(): void {
59 const b: Uint8Array = new Uint8Array(InflateWindow._bufferSize);
60 this.pos -= InflateWindow._size;
61 b.set(this.buffer.subarray(InflateWindow._size, InflateWindow._size + this.pos), 0);
62 this.buffer = b;
63 }
64
65 public addBytes(b: Uint8Array, p: number, len: number): void {
66 if (this.pos + len > InflateWindow._bufferSize) {

Callers 2

addBytesMethod · 0.95
addByteMethod · 0.95

Calls 2

setMethod · 0.95
subarrayMethod · 0.45

Tested by

no test coverage detected