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

Method readBytes

packages/alphatab/src/zip/Inflate.ts:142–152  ·  view source on GitHub ↗
(b: Uint8Array, pos: number, len: number)

Source from the content-addressed store, hash-verified

140 }
141
142 public readBytes(b: Uint8Array, pos: number, len: number): number {
143 this._needed = len;
144 this._outpos = pos;
145 this._output = b;
146 if (len > 0) {
147 while (this._inflateLoop()) {
148 // inflating...
149 }
150 }
151 return len - this._needed;
152 }
153
154 private _inflateLoop(): boolean {
155 switch (this._state) {

Callers 2

_readEntryMethod · 0.95
initializeAndroidMethod · 0.45

Calls 1

_inflateLoopMethod · 0.95

Tested by

no test coverage detected