Lines Matching refs:numcodes
312 unsigned long numcodes = (unsigned long)(bitlen.size()), treepos = 0, nodefilled = 0; in makeFromLengths() local
313 …std::vector<unsigned long> tree1d(numcodes), blcount(maxbitlen + 1, 0), nextcode(maxbitlen + 1, 0); in makeFromLengths()
315 for(unsigned long bits = 0; bits < numcodes; bits++) blcount[bitlen[bits]]++; in makeFromLengths()
321 … for(unsigned long n = 0; n < numcodes; n++) if(bitlen[n] != 0) tree1d[n] = nextcode[bitlen[n]]++; in makeFromLengths()
322 …tree2d.clear(); tree2d.resize(numcodes * 2, 32767); //32767 here means the tree2d isn't filled the… in makeFromLengths()
323 for(unsigned long n = 0; n < numcodes; n++) //the codes in makeFromLengths()
327 if(treepos > numcodes - 2) return 55; in makeFromLengths()
339 tree2d[2 * treepos + bit] = ++nodefilled + numcodes; in makeFromLengths()
343 …else treepos = tree2d[2 * treepos + bit] - numcodes; //subtract numcodes from address to get addre… in makeFromLengths()
349 unsigned long numcodes = (unsigned long)tree2d.size() / 2; in decode() local
350 if(treepos >= numcodes) return 11; //error: you appeared outside the codetree in decode()
352 decoded = (result < numcodes); in decode()
353 treepos = decoded ? 0 : result - numcodes; in decode()
483 size_t numcodes = 0, numlit = 0, numlen = 0; //for logging in inflateHuffmanBlock() local
489 numcodes++; in inflateHuffmanBlock()