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

Method getEncodedLength

packages/alphatab/src/zip/DeflaterHuffman.ts:298–304  ·  view source on GitHub ↗

* Get encoded length * @returns Encoded length, the sum of frequencies * lengths

()

Source from the content-addressed store, hash-verified

296 * @returns Encoded length, the sum of frequencies * lengths
297 */
298 public getEncodedLength(): number {
299 let len = 0;
300 for (let i = 0; i < this.freqs.length; i++) {
301 len += this.freqs[i] * this.length![i];
302 }
303 return len;
304 }
305
306 /**
307 * Scan a literal or distance tree to determine the frequencies of the codes

Callers 1

flushBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected