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

Method _dCode

packages/alphatab/src/zip/DeflaterHuffman.ts:736–743  ·  view source on GitHub ↗
(distance: number)

Source from the content-addressed store, hash-verified

734 }
735
736 private static _dCode(distance: number): number {
737 let code = 0;
738 while (distance >= 4) {
739 code += 2;
740 distance = distance >> 1;
741 }
742 return code + distance;
743 }
744}
745
746DeflaterHuffman.staticInit();

Callers 2

compressBlockMethod · 0.80
tallyDistMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected