limitCodeLengths

private fnvoid limitCodeLengths(ref ubyte[] lengths, int alphaSize, int maxLength) pure

Limit Huffman code lengths using a simple heuristic. Ensures no code exceeds maxLength by redistributing.