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

Method _lCode

packages/alphatab/src/zip/DeflaterHuffman.ts:723–734  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

721 }
722
723 private static _lCode(length: number): number {
724 if (length === 255) {
725 return 285;
726 }
727
728 let code = 257;
729 while (length >= 8) {
730 code += 4;
731 length = length >> 1;
732 }
733 return code + length;
734 }
735
736 private static _dCode(distance: number): number {
737 let code = 0;

Callers 2

compressBlockMethod · 0.80
tallyDistMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected