Home | History | Annotate | Download | only in gzip

Lines Matching defs:symbol

43  * After the symbol count table, there is the symbol table, storing
45 * explicitly transmitted (not necessary anyway) in the symbol table.
47 * Compressed data goes after the symbol table.
55 * last level symbol count by 2 which makes it a number in
56 * range [0..254], so all levels' symbol count would fit into 1 byte.
67 * and store pointers to each level's first symbol. In addition to
72 int symbol_size; /* Size of the symbol table */
80 char *symbol; /* The symbol table */
81 char *symbol_eob; /* Pointer to the EOB symbol */
83 first symbol of each tree level */
104 free(unpackd->symbol);
200 /* Read the levels symbol count table and calculate total */
210 maybe_errx("Bad symbol table");
213 /* Allocate for the symbol table, point symbol_eob at the beginning */
214 unpackd->symbol_eob = unpackd->symbol = calloc(1, unpackd->symbol_size);
215 if (unpackd->symbol == NULL)
219 * Read in the symbol table, which contain [2, 256] symbols.
223 * We adjust the last level's symbol count by 1 here, because
224 * the EOB symbol is not being transmitted explicitly. Another
232 maybe_errx("Symbol table truncated");
239 /* Now, take account for the EOB symbol as well */
258 const char *thissymbol; /* The symbol pointer decoded from stream */
262 * into 'thiscode' bit-by-bit, then output the symbol we got
278 * feed the bit into thiscode, until we got a symbol from
284 /* Did we got a symbol? (referencing leaf node) */